18 #ifndef itkHistogramToProbabilityImageFilter_h 19 #define itkHistogramToProbabilityImageFilter_h 49 template<
typename TInput,
typename TOutput =
float >
65 inline OutputPixelType
operator()(
const TInput & A)
const 67 return static_cast< OutputPixelType
>(
static_cast< OutputPixelType
>( A )
86 template<
typename THistogram,
typename TImage=Image<
float, 3> >
89 Function::HistogramProbabilityFunction< SizeValueType, typename TImage::PixelType > >
116 void operator=(
const Self &) ITK_DELETE_FUNCTION;
OutputPixelType operator()(const TInput &A) const
SizeValueType GetTotalFrequency() const
~HistogramProbabilityFunction()
The class takes a histogram as an input and gives the probability image as the output. A pixel, at position I, in the output image is given by.
HistogramProbabilityFunction()
virtual ~HistogramToProbabilityImageFilter()
HistogramToProbabilityImageFilter Self
SmartPointer< const Self > ConstPointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
unsigned long SizeValueType
HistogramToImageFilter< THistogram, TImage, Function::HistogramProbabilityFunction< SizeValueType, typename TImage::PixelType > > Superclass
HistogramToProbabilityImageFilter()
void SetTotalFrequency(SizeValueType n)
SizeValueType m_TotalFrequency
This class takes a histogram as an input and returns an image of type specified by the functor...
SmartPointer< Self > Pointer