18#ifndef itkOtsuMultipleThresholdsCalculator_h
19#define itkOtsuMultipleThresholdsCalculator_h
49template <
typename TInputHistogram>
95 itkSetMacro(ValleyEmphasis,
bool);
96 itkGetConstReferenceMacro(ValleyEmphasis,
bool);
97 itkBooleanMacro(ValleyEmphasis);
102 itkSetMacro(ReturnBinMidpoint,
bool);
103 itkGetConstReferenceMacro(ReturnBinMidpoint,
bool);
104 itkBooleanMacro(ReturnBinMidpoint);
124 bool m_ValleyEmphasis{
false };
125 bool m_ReturnBinMidpoint{
false };
129#ifndef ITK_MANUAL_INSTANTIATION
130# include "itkOtsuMultipleThresholdsCalculator.hxx"
base class for algorithms operating on histograms
Control indentation during Print() invocation.
Light weight base class for most itk classes.
Define additional traits for native types such as int or float.
Computes Otsu's multiple thresholds for a histogram.
typename NumericTraits< MeasurementType >::RealType MeanType
std::vector< MeasurementType > OutputType
~OtsuMultipleThresholdsCalculator() override=default
typename NumericTraits< MeasurementType >::RealType WeightType
std::vector< WeightType > WeightVectorType
const OutputType & GetOutput()
std::vector< FrequencyType > FrequencyVectorType
typename TInputHistogram::AbsoluteFrequencyType FrequencyType
std::vector< MeanType > MeanVectorType
OtsuMultipleThresholdsCalculator()
std::vector< InstanceIdentifierType > InstanceIdentifierVectorType
typename TInputHistogram::MeasurementType MeasurementType
typename NumericTraits< MeasurementType >::RealType VarianceType
void PrintSelf(std::ostream &os, Indent indent) const override
typename TInputHistogram::InstanceIdentifier InstanceIdentifierType
bool IncrementThresholds(InstanceIdentifierVectorType &thresholdIndexes, MeanType globalMean, MeanVectorType &classMean, FrequencyVectorType &classFrequency)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned long SizeValueType