19#ifndef itkOtsuThresholdImageFilter_h
20#define itkOtsuThresholdImageFilter_h
54template <
typename TInputImage,
typename TOutputImage,
typename TMaskImage = TOutputImage>
105 itkSetMacro(ReturnBinMidpoint,
bool);
106 itkGetConstReferenceMacro(ReturnBinMidpoint,
bool);
107 itkBooleanMacro(ReturnBinMidpoint);
128 itkExceptionMacro(
"Invalid OtsuThresholdCalculator.");
virtual CalculatorType * GetModifiableCalculator()
void GenerateData() override
virtual void SetCalculator(CalculatorType *_arg)
virtual const CalculatorType * GetCalculator() const
void VerifyPreconditions() const override
Statistics::Histogram< ValueRealType > HistogramType
HistogramThresholdImageFilter()
Computes the Otsu's threshold for an image.
static constexpr unsigned int OutputImageDimension
typename OutputImageType::IndexType OutputIndexType
typename OutputImageType::SizeType OutputSizeType
OtsuThresholdImageFilter Self
OtsuThresholdImageFilter()
typename OutputImageType::PixelType OutputPixelType
typename OutputImageType::RegionType OutputImageRegionType
~OtsuThresholdImageFilter() override=default
typename MaskImageType::SizeType MaskSizeType
typename MaskImageType::RegionType MaskImageRegionType
OtsuThresholdCalculator< HistogramType, InputPixelType > CalculatorType
TInputImage InputImageType
typename InputImageType::PixelType InputPixelType
typename InputImageType::Pointer InputImagePointer
SmartPointer< Self > Pointer
typename MaskImageType::PixelType MaskPixelType
typename InputImageType::IndexType InputIndexType
SmartPointer< const Self > ConstPointer
typename OutputImageType::Pointer OutputImagePointer
typename MaskImageType::IndexType MaskIndexType
void VerifyPreconditions() const override
Verifies that the process object has been configured correctly, that all required inputs are set,...
typename InputImageType::SizeType InputSizeType
void GenerateData() override
HistogramThresholdImageFilter< TInputImage, TOutputImage, TMaskImage > Superclass
typename InputImageType::RegionType InputImageRegionType
TOutputImage OutputImageType
static constexpr unsigned int InputImageDimension
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....