|
ITK
5.2.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkHistogramToLogProbabilityImageFilter_h
19 #define itkHistogramToLogProbabilityImageFilter_h
49 template <
typename TInput,
typename TOutput =
double>
68 return static_cast<OutputPixelType>(
69 std::log(static_cast<OutputPixelType>(A) / static_cast<OutputPixelType>(
m_TotalFrequency)) / std::log(2.0));
73 return static_cast<OutputPixelType>(
74 std::log(static_cast<OutputPixelType>(A + 1) / static_cast<OutputPixelType>(
m_TotalFrequency)) / std::log(2.0));
95 template <
typename THistogram,
typename TImage = Image<
double, 3>>
99 Function::HistogramLogProbabilityFunction<SizeValueType, typename TImage::PixelType>>
~HistogramToLogProbabilityImageFilter() override=default
TImage::PixelType OutputPixelType
SizeValueType m_TotalFrequency
Light weight base class for most itk classes.
OutputPixelType operator()(const TInput &A) const
HistogramToLogProbabilityImageFilter()=default
The class takes a histogram as an input and gives the log probability image as the output....
SizeValueType GetTotalFrequency() const
~HistogramLogProbabilityFunction()=default
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
HistogramLogProbabilityFunction()=default
void SetTotalFrequency(SizeValueType n)
This class takes a histogram as an input and returns an image of type specified by the functor.
unsigned long SizeValueType