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 );
123 itkSetInputMacro(MaskImage, TMaskImage);
124 itkGetInputMacro(MaskImage, TMaskImage);
130 this->SetInput(input);
136 this->SetMaskImage(input);
141 itkSetMacro(OutsideValue, OutputPixelType);
144 itkGetConstMacro(OutsideValue, OutputPixelType);
148 itkSetMacro(InsideValue, OutputPixelType);
151 itkGetConstMacro(InsideValue, OutputPixelType);
154 itkSetMacro(NumberOfHistogramBins,
unsigned int);
155 itkGetConstMacro(NumberOfHistogramBins,
unsigned int);
160 itkSetMacro(AutoMinimumMaximum,
bool);
161 itkGetConstMacro(AutoMinimumMaximum,
bool);
162 itkBooleanMacro(AutoMinimumMaximum);
168 itkSetMacro(MaskOutput,
bool);
169 itkGetConstMacro(MaskOutput,
bool);
170 itkBooleanMacro(MaskOutput);
176 itkSetMacro(MaskValue, MaskPixelType);
177 itkGetConstMacro(MaskValue, MaskPixelType);
181 itkGetConstMacro(Threshold, InputPixelType);
184 itkSetObjectMacro(Calculator, CalculatorType);
185 itkGetModifiableObjectMacro(Calculator, CalculatorType);
188 #ifdef ITK_USE_CONCEPT_CHECKING
202 void PrintSelf(std::ostream& os,
Indent indent)
const ITK_OVERRIDE;
204 void GenerateInputRequestedRegion() ITK_OVERRIDE;
205 void GenerateData () ITK_OVERRIDE;
215 unsigned m_NumberOfHistogramBins;
216 bool m_AutoMinimumMaximum;
222 #ifndef ITK_MANUAL_INSTANTIATION
223 #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
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
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() override
InputImageType::PixelType InputPixelType
TMeasurement MeasurementType
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)
ImageBaseType::SizeType SizeType
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
ImageBaseType::IndexType IndexType