19 #ifndef itkOtsuThresholdImageFilter_h
20 #define itkOtsuThresholdImageFilter_h
54 template<
typename TInputImage,
typename TOutputImage,
typename TMaskImage=TOutputImage>
106 itkSetMacro(ReturnBinMidpoint,
bool);
107 itkGetConstReferenceMacro(ReturnBinMidpoint,
bool);
108 itkBooleanMacro(ReturnBinMidpoint);
127 #if defined(ITKV4_COMPATIBILITY)
Threshold an image using a HistogramThresholdCalculator.
typename OutputImageType::Pointer OutputImagePointer
void GenerateData() override
typename MaskImageType::SizeType MaskSizeType
static constexpr unsigned int InputImageDimension
static constexpr unsigned int OutputImageDimension
Computes the Otsu's threshold for an image.
This class stores measurement vectors in the context of n-dimensional histogram.
virtual void SetCalculator(CalculatorType *_arg)
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
typename MaskImageType::PixelType MaskPixelType
typename InputImageType::SizeType InputSizeType
Base class for all process objects that output image data.
TInputImage InputImageType
typename InputImageType::Pointer InputImagePointer
Threshold an image using the Otsu Threshold.
ImageBaseType::SizeType SizeType
typename OutputImageType::RegionType OutputImageRegionType
ImageBaseType::IndexType IndexType
typename OutputImageType::SizeType OutputSizeType
TOutputImage OutputImageType
typename MaskImageType::RegionType MaskImageRegionType
typename InputImageType::IndexType InputIndexType
typename MaskImageType::IndexType MaskIndexType
typename InputImageType::RegionType InputImageRegionType
void GenerateData() override
Statistics::Histogram< ValueRealType > HistogramType
Base class to compute a threshold value based on the histogram of an image.
typename OutputImageType::PixelType OutputPixelType
typename OutputImageType::IndexType OutputIndexType
ImageBaseType::RegionType RegionType
~OtsuThresholdImageFilter() override=default
virtual CalculatorType * GetModifiableCalculator()
OtsuThresholdImageFilter()
typename InputImageType::PixelType InputPixelType