19 #ifndef itkHistogramThresholdImageFilter_h
20 #define itkHistogramThresholdImageFilter_h
59 template<
typename TInputImage,
typename TOutputImage,
typename TMaskImage=TOutputImage>
113 itkStaticConstMacro(InputImageDimension,
unsigned int,
114 InputImageType::ImageDimension );
115 itkStaticConstMacro(OutputImageDimension,
unsigned int,
116 OutputImageType::ImageDimension );
117 itkStaticConstMacro(MaskImageDimension,
unsigned int,
118 MaskImageType::ImageDimension );
127 this->SetNthInput( 1, const_cast< TMaskImage * >( input ) );
133 return itkDynamicCastInDebugMode< MaskImageType * >
140 this->SetInput(input);
146 this->SetMaskImage(input);
151 itkSetMacro(OutsideValue,OutputPixelType);
154 itkGetConstMacro(OutsideValue,OutputPixelType);
158 itkSetMacro(InsideValue,OutputPixelType);
161 itkGetConstMacro(InsideValue,OutputPixelType);
164 itkSetMacro(NumberOfHistogramBins,
unsigned int);
165 itkGetConstMacro(NumberOfHistogramBins,
unsigned int);
170 itkSetMacro(AutoMinimumMaximum,
bool);
171 itkGetConstMacro(AutoMinimumMaximum,
bool);
172 itkBooleanMacro(AutoMinimumMaximum);
178 itkSetMacro(MaskOutput,
bool);
179 itkGetConstMacro(MaskOutput,
bool);
180 itkBooleanMacro(MaskOutput);
186 itkSetMacro(MaskValue, MaskPixelType);
187 itkGetConstMacro(MaskValue, MaskPixelType);
191 itkGetConstMacro(Threshold,InputPixelType);
194 itkSetObjectMacro(Calculator, CalculatorType);
195 itkGetModifiableObjectMacro(Calculator, CalculatorType);
198 #ifdef ITK_USE_CONCEPT_CHECKING
212 void PrintSelf(std::ostream& os,
Indent indent)
const ITK_OVERRIDE;
214 void GenerateInputRequestedRegion() ITK_OVERRIDE;
215 void GenerateData () ITK_OVERRIDE;
222 unsigned m_NumberOfHistogramBins;
223 bool m_AutoMinimumMaximum;
233 #ifndef ITK_MANUAL_INSTANTIATION
234 #include "itkHistogramThresholdImageFilter.hxx"
SmartPointer< const Self > ConstPointer
HistogramThresholdImageFilter Self
Threshold an image using a HistogramThresholdCalculator.
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
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.
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)
Base class for all data objects in ITK.
ImageToImageFilter< TInputImage, TOutputImage > Superclass