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 > >
Light weight base class for most itk classes.
SizeValueType GetTotalFrequency() const
void operator=(const Self &)
SizeValueType m_TotalFrequency
unsigned long SizeValueType
~HistogramLogProbabilityFunction()
The class takes a histogram as an input and gives the log probability image as the output...
HistogramToImageFilter< THistogram, TImage, Function::HistogramLogProbabilityFunction< SizeValueType, typename TImage::PixelType > > Superclass
virtual ~HistogramToLogProbabilityImageFilter()
void SetTotalFrequency(SizeValueType n)
This class takes a histogram as an input and returns an image of type specified by the functor...
HistogramToLogProbabilityImageFilter Self
HistogramToLogProbabilityImageFilter()
SmartPointer< Self > Pointer
HistogramLogProbabilityFunction()
SmartPointer< const Self > ConstPointer
OutputPixelType operator()(const TInput &A) const