18 #ifndef itkHistogramToLogProbabilityImageFilter_h
19 #define itkHistogramToLogProbabilityImageFilter_h
49 template<
typename TInput,
typename TOutput =
double >
69 return static_cast< OutputPixelType >( std::log( static_cast< OutputPixelType >( A )
75 return static_cast< OutputPixelType >( std::log( static_cast< OutputPixelType >( A + 1 )
96 template<
typename THistogram,
typename TImage=Image<
double, 3 > >
99 Function::HistogramLogProbabilityFunction< SizeValueType, typename TImage::PixelType > >
~HistogramLogProbabilityFunction()=default
Light weight base class for most itk classes.
SizeValueType GetTotalFrequency() const
unsigned long SizeValueType
SizeValueType m_TotalFrequency
HistogramToLogProbabilityImageFilter()=default
~HistogramToLogProbabilityImageFilter() override=default
The class takes a histogram as an input and gives the log probability image as the output...
void SetTotalFrequency(SizeValueType n)
TImage::PixelType OutputPixelType
This class takes a histogram as an input and returns an image of type specified by the functor...
HistogramLogProbabilityFunction()
OutputPixelType operator()(const TInput &A) const