19 #ifndef itkHistogramThresholdImageFilter_h
20 #define itkHistogramThresholdImageFilter_h
60 template<
typename TInputImage,
typename TOutputImage,
typename TMaskImage=TOutputImage>
116 static constexpr
unsigned int InputImageDimension = InputImageType::ImageDimension;
117 static constexpr
unsigned int OutputImageDimension = OutputImageType::ImageDimension;
118 static constexpr
unsigned int MaskImageDimension = MaskImageType::ImageDimension;
121 itkSetInputMacro(MaskImage, TMaskImage);
122 itkGetInputMacro(MaskImage, TMaskImage);
128 this->SetInput(input);
134 this->SetMaskImage(input);
139 itkSetMacro(OutsideValue, OutputPixelType);
142 itkGetConstMacro(OutsideValue, OutputPixelType);
146 itkSetMacro(InsideValue, OutputPixelType);
149 itkGetConstMacro(InsideValue, OutputPixelType);
152 itkSetMacro(NumberOfHistogramBins,
unsigned int);
153 itkGetConstMacro(NumberOfHistogramBins,
unsigned int);
158 itkSetMacro(AutoMinimumMaximum,
bool);
159 itkGetConstMacro(AutoMinimumMaximum,
bool);
160 itkBooleanMacro(AutoMinimumMaximum);
166 itkSetMacro(MaskOutput,
bool);
167 itkGetConstMacro(MaskOutput,
bool);
168 itkBooleanMacro(MaskOutput);
174 itkSetMacro(MaskValue, MaskPixelType);
175 itkGetConstMacro(MaskValue, MaskPixelType);
179 itkGetConstMacro(Threshold, InputPixelType);
182 itkSetObjectMacro(Calculator, CalculatorType);
183 itkGetModifiableObjectMacro(Calculator, CalculatorType);
186 #ifdef ITK_USE_CONCEPT_CHECKING
200 void PrintSelf(std::ostream& os,
Indent indent)
const override;
202 void GenerateInputRequestedRegion()
override;
203 void GenerateData ()
override;
211 unsigned m_NumberOfHistogramBins{ 256 };
213 bool m_MaskOutput{
true };
218 #ifndef ITK_MANUAL_INSTANTIATION
219 #include "itkHistogramThresholdImageFilter.hxx"
CalculatorPointer m_Calculator
Threshold an image using a HistogramThresholdCalculator.
typename HistogramType::SizeType HistogramSizeType
typename OutputImageType::Pointer OutputImagePointer
typename NumericTraits< ValueType >::RealType ValueRealType
typename CalculatorType::Pointer CalculatorPointer
Define numeric traits for std::vector.
typename MaskImageType::SizeType MaskSizeType
This class stores measurement vectors in the context of n-dimensional histogram.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
bool m_AutoMinimumMaximum
typename MaskImageType::PixelType MaskPixelType
typename InputImageType::SizeType InputSizeType
typename NumericTraits< InputPixelType >::ValueType ValueType
Base class for all process objects that output image data.
TInputImage InputImageType
OutputPixelType m_InsideValue
typename HistogramType::MeasurementType HistogramMeasurementType
void SetInput1(const TInputImage *input)
InputPixelType m_Threshold
TMeasurement MeasurementType
typename HistogramType::MeasurementVectorType HistogramMeasurementVectorType
typename InputImageType::Pointer InputImagePointer
ImageBaseType::SizeType SizeType
typename OutputImageType::RegionType OutputImageRegionType
ImageBaseType::IndexType IndexType
typename OutputImageType::SizeType OutputSizeType
typename HistogramType::ConstPointer HistogramConstPointer
TOutputImage OutputImageType
typename MaskImageType::RegionType MaskImageRegionType
typename InputImageType::IndexType InputIndexType
typename MaskImageType::IndexType MaskIndexType
MaskPixelType m_MaskValue
OutputPixelType m_OutsideValue
typename InputImageType::RegionType InputImageRegionType
typename MaskImageType::Pointer MaskImagePointer
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
void SetInput2(const TMaskImage *input)
typename Superclass::MeasurementVectorType MeasurementVectorType
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
typename HistogramType::Pointer HistogramPointer
#define itkConceptMacro(name, concept)
typename InputImageType::PixelType InputPixelType