18 #ifndef itkOtsuMultipleThresholdsCalculator_h
19 #define itkOtsuMultipleThresholdsCalculator_h
48 template<
typename TInputHistogram >
79 typedef std::vector< MeasurementType >
OutputType;
93 itkSetMacro(ValleyEmphasis,
bool);
94 itkGetConstReferenceMacro(ValleyEmphasis,
bool);
95 itkBooleanMacro(ValleyEmphasis);
100 virtual ~OtsuMultipleThresholdsCalculator() {}
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.
const OutputType & GetOutput()
unsigned long SizeValueType
OtsuMultipleThresholdsCalculator Self
bool IncrementThresholds(InstanceIdentifierVectorType &thresholdIds, MeanType totalMean, MeanVectorType &classMean, FrequencyVectorType &classFrequency)
NumericTraits< MeasurementType >::RealType MeanType
NumericTraits< MeasurementType >::RealType WeightType
base class for algorithms operating on histograms
SizeValueType m_NumberOfThresholds
HistogramAlgorithmBase< TInputHistogram > Superclass
void PrintSelf(std::ostream &os, Indent indent) const override
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