18 #ifndef itkOtsuMultipleThresholdsCalculator_h
19 #define itkOtsuMultipleThresholdsCalculator_h
48 template<
typename TInputHistogram >
90 void Compute()
override;
93 itkSetMacro(ValleyEmphasis,
bool);
94 itkGetConstReferenceMacro(ValleyEmphasis,
bool);
95 itkBooleanMacro(ValleyEmphasis);
100 itkSetMacro(ReturnBinMidpoint,
bool);
101 itkGetConstReferenceMacro(ReturnBinMidpoint,
bool);
102 itkBooleanMacro(ReturnBinMidpoint);
109 void PrintSelf(std::ostream & os,
Indent indent)
const override;
121 bool m_ValleyEmphasis{
false };
122 #if defined(ITKV4_COMPATIBILITY)
123 bool m_ReturnBinMidpoint{
true };
125 bool m_ReturnBinMidpoint{
false };
130 #ifndef ITK_MANUAL_INSTANTIATION
131 #include "itkOtsuMultipleThresholdsCalculator.hxx"
Light weight base class for most itk classes.
Define numeric traits for std::vector.
unsigned long SizeValueType
typename THistogram::AbsoluteFrequencyType FrequencyType
std::vector< MeasurementType > OutputType
Computes Otsu's multiple thresholds for a histogram.
typename THistogram::MeasurementType MeasurementType
base class for algorithms operating on histograms
std::vector< FrequencyType > FrequencyVectorType
typename NumericTraits< MeasurementType >::RealType MeanType
typename NumericTraits< MeasurementType >::RealType WeightType
typename NumericTraits< MeasurementType >::RealType VarianceType
std::vector< InstanceIdentifierType > InstanceIdentifierVectorType
std::vector< MeanType > MeanVectorType
Control indentation during Print() invocation.
typename THistogram::InstanceIdentifier InstanceIdentifierType
std::vector< WeightType > WeightVectorType