17 #ifndef itkNewOtsuThresholdImageFilter_h 18 #define itkNewOtsuThresholdImageFilter_h 20 #include "itkImageToImageFilter.h" 21 #include "itkFixedArray.h" 41 template<
class TInputImage,
class TOutputImage>
43 public ImageToImageFilter<TInputImage, TOutputImage>
48 typedef ImageToImageFilter<TInputImage,TOutputImage>
Superclass;
76 TInputImage::ImageDimension );
78 TOutputImage::ImageDimension );
96 NumericTraits<unsigned long>::max() );
97 itkGetMacro( NumberOfHistogramBins,
unsigned long );
109 void PrintSelf(std::ostream& os, Indent indent)
const override;
116 void operator=(
const Self&) =
delete;
121 unsigned long m_NumberOfHistogramBins;
127 #ifndef ITK_MANUAL_INSTANTIATION 128 #include "itkNewOtsuThresholdImageFilter.txx"
Threshold an image using the Otsu Threshold.
~NewOtsuThresholdImageFilter() override=default
itkGetMacro(OutsideValue, OutputPixelType)
void GenerateData() override
itkSetMacro(OutsideValue, OutputPixelType)
TOutputImage::PixelType OutputPixelType
Simplified inverse ITK transforms.
itkSetClampMacro(NumberOfHistogramBins, unsigned long, 1, NumericTraits< unsigned long >::max())
TOutputImage::SizeType OutputSizeType
TOutputImage::RegionType OutputImageRegionType
NewOtsuThresholdImageFilter Self
TOutputImage::IndexType OutputIndexType
TInputImage::PixelType InputPixelType
TInputImage::Pointer InputImagePointer
SmartPointer< const Self > ConstPointer
itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension)
TInputImage::SizeType InputSizeType
void PrintSelf(std::ostream &os, Indent indent) const override
itkTypeMacro(NewOtsuThresholdImageFilter, ImageToImageFilter)
TInputImage::IndexType InputIndexType
TInputImage::RegionType InputImageRegionType
SmartPointer< Self > Pointer
ImageToImageFilter< TInputImage, TOutputImage > Superclass
void GenerateInputRequestedRegion() override
NewOtsuThresholdImageFilter()
TOutputImage::Pointer OutputImagePointer