ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkHuangThresholdCalculator.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * https://www.apache.org/licenses/LICENSE-2.0.txt
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 *=========================================================================*/
18
19#ifndef itkHuangThresholdCalculator_h
20#define itkHuangThresholdCalculator_h
21
23
24namespace itk
25{
26
49template <typename THistogram, typename TOutput = double>
50class ITK_TEMPLATE_EXPORT HuangThresholdCalculator : public HistogramThresholdCalculator<THistogram, TOutput>
51{
52public:
53 ITK_DISALLOW_COPY_AND_MOVE(HuangThresholdCalculator);
54
60
62 itkNewMacro(Self);
63
65 itkOverrideGetNameOfClassMacro(HuangThresholdCalculator);
66
68 using HistogramType = THistogram;
69 using OutputType = TOutput;
70
71protected:
73 {
74 m_FirstBin = 0;
75 m_LastBin = 0;
76 m_Size = 0;
77 }
78 ~HuangThresholdCalculator() override = default;
79 void
80 GenerateData() override;
81
82 void
83 PrintSelf(std::ostream & os, Indent indent) const override;
84
85 using TotalAbsoluteFrequencyType = typename HistogramType::TotalAbsoluteFrequencyType;
86 using AbsoluteFrequencyType = typename HistogramType::AbsoluteFrequencyType;
87 using InstanceIdentifier = typename HistogramType::InstanceIdentifier;
88 using SizeValueType = typename HistogramType::SizeValueType;
89 using MeasurementType = typename HistogramType::MeasurementType;
90
91private:
95};
96
97} // end namespace itk
98
99
100#ifndef ITK_MANUAL_INSTANTIATION
101# include "itkHuangThresholdCalculator.hxx"
102#endif
103
104#endif
void PrintSelf(std::ostream &os, Indent indent) const override
typename HistogramType::MeasurementType MeasurementType
SmartPointer< const Self > ConstPointer
typename HistogramType::InstanceIdentifier InstanceIdentifier
HistogramThresholdCalculator< THistogram, TOutput > Superclass
typename HistogramType::SizeValueType SizeValueType
typename HistogramType::TotalAbsoluteFrequencyType TotalAbsoluteFrequencyType
~HuangThresholdCalculator() override=default
typename HistogramType::AbsoluteFrequencyType AbsoluteFrequencyType
Control indentation during Print() invocation.
Definition itkIndent.h:50
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....