18 #ifndef itkOtsuMultipleThresholdsCalculator_h
19 #define itkOtsuMultipleThresholdsCalculator_h
48 template<
typename TInputHistogram >
79 typedef std::vector< MeasurementType >
OutputType;
90 void Compute() ITK_OVERRIDE;
93 itkSetMacro(ValleyEmphasis,
bool);
94 itkGetConstReferenceMacro(ValleyEmphasis,
bool);
95 itkBooleanMacro(ValleyEmphasis);
100 virtual ~OtsuMultipleThresholdsCalculator() ITK_OVERRIDE {}
101 void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
104 bool IncrementThresholds(InstanceIdentifierVectorType & thresholdIds,
106 MeanVectorType & classMean,
107 FrequencyVectorType & classFrequency);
117 #ifndef ITK_MANUAL_INSTANTIATION
118 #include "itkOtsuMultipleThresholdsCalculator.hxx"
TInputHistogram::InstanceIdentifier InstanceIdentifierType
Light weight base class for most itk classes.
std::vector< MeanType > MeanVectorType
std::vector< MeasurementType > OutputType
SmartPointer< const Self > ConstPointer
Computes Otsu's multiple thresholds for a histogram.
unsigned long SizeValueType
OtsuMultipleThresholdsCalculator Self
NumericTraits< MeasurementType >::RealType MeanType
NumericTraits< MeasurementType >::RealType WeightType
base class for algorithms operating on histograms
SizeValueType m_NumberOfThresholds
HistogramAlgorithmBase< TInputHistogram > Superclass
TInputHistogram::AbsoluteFrequencyType FrequencyType
SmartPointer< Self > Pointer
std::vector< WeightType > WeightVectorType
Control indentation during Print() invocation.
Define additional traits for native types such as int or float.
NumericTraits< MeasurementType >::RealType VarianceType
TInputHistogram::MeasurementType MeasurementType
std::vector< InstanceIdentifierType > InstanceIdentifierVectorType
std::vector< FrequencyType > FrequencyVectorType