2 #ifndef itkNewOtsuThresholdImageCalculator_h 3 #define itkNewOtsuThresholdImageCalculator_h 6 #include "itkObjectFactory.h" 7 #include "itkNumericTraits.h" 27 template <
class TInputImage>
66 NumericTraits<unsigned long>::max() );
67 itkGetMacro( NumberOfHistogramBins,
unsigned long );
75 void PrintSelf(std::ostream& os, Indent indent)
const ITK_OVERRIDE;
79 void operator=(
const Self&);
81 PixelType m_Threshold;
82 unsigned long m_NumberOfHistogramBins;
84 ImageConstPointer m_Image;
91 #ifndef ITK_MANUAL_INSTANTIATION 92 #include "itkNewOtsuThresholdImageCalculator.txx" itkSetConstObjectMacro(Image, ImageType)
itkSetClampMacro(NumberOfHistogramBins, unsigned long, 1, NumericTraits< unsigned long >::max())
SmartPointer< const Self > ConstPointer
TInputImage::Pointer ImagePointer
Simplified inverse ITK transforms.
itkSetMacro(Omega, double)
NewOtsuThresholdImageCalculator()
TInputImage::PixelType PixelType
virtual ~NewOtsuThresholdImageCalculator()
itkTypeMacro(NewOtsuThresholdImageCalculator, Object)
void PrintSelf(std::ostream &os, Indent indent) const ITK_OVERRIDE
Computes the Otsu's threshold for an image.
itkGetMacro(Threshold, PixelType)
SmartPointer< Self > Pointer
TInputImage::ConstPointer ImageConstPointer
NewOtsuThresholdImageCalculator Self