19 #ifndef itkHistogramThresholdImageFilter_h
20 #define itkHistogramThresholdImageFilter_h
60 template<
typename TInputImage,
typename TOutputImage,
typename TMaskImage=TOutputImage>
114 itkStaticConstMacro(InputImageDimension,
unsigned int,
115 InputImageType::ImageDimension );
116 itkStaticConstMacro(OutputImageDimension,
unsigned int,
117 OutputImageType::ImageDimension );
118 itkStaticConstMacro(MaskImageDimension,
unsigned int,
119 MaskImageType::ImageDimension );
128 this->SetNthInput( 1, const_cast< TMaskImage * >( input ) );
134 return itkDynamicCastInDebugMode< MaskImageType * >
141 this->SetInput(input);
147 this->SetMaskImage(input);
152 itkSetMacro(OutsideValue, OutputPixelType);
155 itkGetConstMacro(OutsideValue, OutputPixelType);
159 itkSetMacro(InsideValue, OutputPixelType);
162 itkGetConstMacro(InsideValue, OutputPixelType);
165 itkSetMacro(NumberOfHistogramBins,
unsigned int);
166 itkGetConstMacro(NumberOfHistogramBins,
unsigned int);
171 itkSetMacro(AutoMinimumMaximum,
bool);
172 itkGetConstMacro(AutoMinimumMaximum,
bool);
173 itkBooleanMacro(AutoMinimumMaximum);
179 itkSetMacro(MaskOutput,
bool);
180 itkGetConstMacro(MaskOutput,
bool);
181 itkBooleanMacro(MaskOutput);
187 itkSetMacro(MaskValue, MaskPixelType);
188 itkGetConstMacro(MaskValue, MaskPixelType);
192 itkGetConstMacro(Threshold, InputPixelType);
195 itkSetObjectMacro(Calculator, CalculatorType);
196 itkGetModifiableObjectMacro(Calculator, CalculatorType);
199 #ifdef ITK_USE_CONCEPT_CHECKING
215 void GenerateInputRequestedRegion() ITK_OVERRIDE;
216 void GenerateData () ITK_OVERRIDE;
226 unsigned m_NumberOfHistogramBins;
227 bool m_AutoMinimumMaximum;
233 #ifndef ITK_MANUAL_INSTANTIATION
234 #include "itkHistogramThresholdImageFilter.hxx"
SmartPointer< const Self > ConstPointer
HistogramThresholdImageFilter Self
Threshold an image using a HistogramThresholdCalculator.
virtual void PrintSelf(std::ostream &os, Indent indent) const override
Statistics::Histogram< ValueRealType > HistogramType
OutputImageType::SizeType OutputSizeType
InputImageType::SizeType InputSizeType
InputImageType::RegionType InputImageRegionType
void SetMaskImage(const TMaskImage *input)
MaskImageType::Pointer MaskImagePointer
NumericTraits< InputPixelType >::ValueType ValueType
MaskImageType::PixelType MaskPixelType
HistogramType::SizeType HistogramSizeType
HistogramType::Pointer HistogramPointer
This class stores measurement vectors in the context of n-dimensional histogram.
MaskImageType::RegionType MaskImageRegionType
HistogramThresholdCalculator< HistogramType, InputPixelType > CalculatorType
Base class for all process objects that output image data.
CalculatorType::Pointer CalculatorPointer
const MaskImageType * GetMaskImage() const
OutputImageType::RegionType OutputImageRegionType
SmartPointer< Self > Pointer
HistogramType::MeasurementVectorType HistogramMeasurementVectorType
void SetInput1(const TInputImage *input)
NumericTraits< ValueType >::RealType ValueRealType
HistogramType::MeasurementType HistogramMeasurementType
OutputImageType::IndexType OutputIndexType
MaskImageType::SizeType MaskSizeType
Superclass::MeasurementVectorType MeasurementVectorType
OutputImageType::PixelType OutputPixelType
~HistogramThresholdImageFilter()
InputImageType::PixelType InputPixelType
TMeasurement MeasurementType
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
Base class for all data objects in ITK.
HistogramType::ConstPointer HistogramConstPointer
SmartPointer< Self > Pointer
InputImageType::Pointer InputImagePointer
TOutputImage OutputImageType
TInputImage InputImageType
MaskImageType::IndexType MaskIndexType
Base class for filters that take an image as input and produce an image as output.
InputImageType::IndexType InputIndexType
Control indentation during Print() invocation.
void SetInput2(const TMaskImage *input)
OutputImageType::Pointer OutputImagePointer
Define additional traits for native types such as int or float.
Base class to compute a threshold value based on the histogram of an image.
#define itkConceptMacro(name, concept)
ImageToImageFilter< TInputImage, TOutputImage > Superclass