19#ifndef itkHistogramThresholdImageFilter_h
20#define itkHistogramThresholdImageFilter_h
61template <
typename TInputImage,
typename TOutputImage,
typename TMaskImage = TOutputImage>
118 static constexpr unsigned int InputImageDimension = InputImageType::ImageDimension;
119 static constexpr unsigned int OutputImageDimension = OutputImageType::ImageDimension;
120 static constexpr unsigned int MaskImageDimension = MaskImageType::ImageDimension;
131 this->SetInput(input);
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);
190#ifdef ITK_USE_CONCEPT_CHECKING
212 Superclass::VerifyPreconditions();
213 if (m_Calculator.IsNull())
215 itkExceptionMacro(
"No threshold calculator set.");
229 unsigned int m_NumberOfHistogramBins{ 256 };
230 bool m_AutoMinimumMaximum{};
231 bool m_MaskOutput{
true };
236#ifndef ITK_MANUAL_INSTANTIATION
237# include "itkHistogramThresholdImageFilter.hxx"
Base class to compute a threshold value based on the histogram of an image.
Threshold an image using a HistogramThresholdCalculator.
typename MaskImageType::RegionType MaskImageRegionType
void GenerateData() override
typename NumericTraits< ValueType >::RealType ValueRealType
typename InputImageType::IndexType InputIndexType
typename HistogramType::MeasurementVectorType HistogramMeasurementVectorType
void GenerateInputRequestedRegion() override
typename HistogramType::SizeType HistogramSizeType
typename HistogramType::Pointer HistogramPointer
itkSetInputMacro(MaskImage, TMaskImage)
void SetInput2(const TMaskImage *input)
typename OutputImageType::SizeType OutputSizeType
typename InputImageType::PixelType InputPixelType
typename MaskImageType::SizeType MaskSizeType
typename HistogramType::ConstPointer HistogramConstPointer
itkGetInputMacro(MaskImage, TMaskImage)
void SetUpHistogramGenerator(HistogramGeneratorPointer histogramGenerator)
typename OutputImageType::IndexType OutputIndexType
~HistogramThresholdImageFilter() override=default
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
typename MaskImageType::Pointer MaskImagePointer
typename OutputImageType::PixelType OutputPixelType
typename InputImageType::SizeType InputSizeType
typename HistogramType::MeasurementType HistogramMeasurementType
void PrintSelf(std::ostream &os, Indent indent) const override
HistogramThresholdImageFilter()
typename MaskImageType::PixelType MaskPixelType
typename NumericTraits< InputPixelType >::ValueType ValueType
void SetInput1(const TInputImage *input)
typename CalculatorType::Pointer CalculatorPointer
Base class for all process objects that output image data.
typename OutputImageType::RegionType OutputImageRegionType
TOutputImage OutputImageType
typename OutputImageType::Pointer OutputImagePointer
Base class for filters that take an image as input and produce an image as output.
TInputImage InputImageType
typename InputImageType::Pointer InputImagePointer
typename InputImageType::RegionType InputImageRegionType
Control indentation during Print() invocation.
Define additional traits for native types such as int or float.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
This class stores measurement vectors in the context of n-dimensional histogram.
TMeasurement MeasurementType
This class generates a histogram from an image.
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
#define itkConceptMacro(name, concept)
ImageBaseType::RegionType RegionType
ImageBaseType::IndexType IndexType
ImageBaseType::SizeType SizeType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....