19#ifndef itkHistogramThresholdImageFilter_h
20#define itkHistogramThresholdImageFilter_h
61template <
typename TInputImage,
typename TOutputImage,
typename TMaskImage = TOutputImage>
138 this->SetMaskImage(input);
156 itkSetMacro(NumberOfHistogramBins,
unsigned int);
157 itkGetConstMacro(NumberOfHistogramBins,
unsigned int);
162 itkSetMacro(AutoMinimumMaximum,
bool);
163 itkGetConstMacro(AutoMinimumMaximum,
bool);
164 itkBooleanMacro(AutoMinimumMaximum);
170 itkSetMacro(MaskOutput,
bool);
171 itkGetConstMacro(MaskOutput,
bool);
172 itkBooleanMacro(MaskOutput);
211 itkExceptionMacro(
"No threshold calculator set.");
232#ifndef ITK_MANUAL_INSTANTIATION
233# include "itkHistogramThresholdImageFilter.hxx"
Base class to compute a threshold value based on the histogram of an image.
SmartPointer< Self > Pointer
OutputPixelType m_OutsideValue
typename MaskImageType::RegionType MaskImageRegionType
MaskPixelType m_MaskValue
HistogramThresholdImageFilter Self
void GenerateData() override
typename NumericTraits< ValueType >::RealType ValueRealType
typename InputImageType::IndexType InputIndexType
typename HistogramType::MeasurementVectorType HistogramMeasurementVectorType
void GenerateInputRequestedRegion() override
typename HistogramType::SizeType HistogramSizeType
typename OutputImageType::Pointer OutputImagePointer
typename InputImageType::RegionType InputImageRegionType
typename HistogramType::Pointer HistogramPointer
TInputImage InputImageType
itkSetInputMacro(MaskImage, TMaskImage)
static constexpr unsigned int InputImageDimension
void SetInput2(const TMaskImage *input)
typename InputImageType::Pointer InputImagePointer
HistogramThresholdCalculator< HistogramType, InputPixelType > CalculatorType
typename OutputImageType::SizeType OutputSizeType
CalculatorPointer m_Calculator
Statistics::ImageToHistogramFilter< InputImageType > HistogramGeneratorType
typename InputImageType::PixelType InputPixelType
bool m_AutoMinimumMaximum
typename MaskImageType::SizeType MaskSizeType
unsigned int m_NumberOfHistogramBins
SmartPointer< const Self > ConstPointer
typename HistogramType::ConstPointer HistogramConstPointer
itkGetInputMacro(MaskImage, TMaskImage)
void SetUpHistogramGenerator(HistogramGeneratorPointer histogramGenerator)
static constexpr unsigned int OutputImageDimension
InputPixelType m_Threshold
ImageToImageFilter< TInputImage, TOutputImage > Superclass
static constexpr unsigned int MaskImageDimension
typename OutputImageType::IndexType OutputIndexType
~HistogramThresholdImageFilter() override=default
typename OutputImageType::RegionType OutputImageRegionType
typename MaskImageType::IndexType MaskIndexType
void VerifyPreconditions() const override
Verifies that the process object has been configured correctly, that all required inputs are set,...
typename HistogramGeneratorType::Pointer HistogramGeneratorPointer
Statistics::Histogram< ValueRealType > HistogramType
typename MaskImageType::Pointer MaskImagePointer
typename OutputImageType::PixelType OutputPixelType
typename InputImageType::SizeType InputSizeType
SmartPointer< Self > Pointer
typename HistogramType::MeasurementType HistogramMeasurementType
void PrintSelf(std::ostream &os, Indent indent) const override
HistogramThresholdImageFilter()
typename MaskImageType::PixelType MaskPixelType
TOutputImage OutputImageType
typename NumericTraits< InputPixelType >::ValueType ValueType
OutputPixelType m_InsideValue
void SetInput1(const TInputImage *input)
typename CalculatorType::Pointer CalculatorPointer
virtual void SetInput(const InputImageType *input)
Control indentation during Print() invocation.
virtual void VerifyPreconditions() const
Verifies that the process object has been configured correctly, that all required inputs are set,...
Implements transparent reference counting.
This class stores measurement vectors in the context of n-dimensional histogram.
Array< itk::SizeValueType > SizeType
ValueRealType MeasurementType
SmartPointer< const Self > ConstPointer
ArrayType MeasurementVectorType
SmartPointer< Self > Pointer
This class generates a histogram from an image.
SmartPointer< Self > Pointer
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....