ITK  6.0.0
Insight Toolkit
itkDenseFrequencyContainer2.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#ifndef itkDenseFrequencyContainer2_h
19#define itkDenseFrequencyContainer2_h
20
21#include <map>
24#include "ITKStatisticsExport.h"
25
26namespace itk
27{
28namespace Statistics
29{
43class ITKStatistics_EXPORT DenseFrequencyContainer2 : public Object
44{
45public:
46 ITK_DISALLOW_COPY_AND_MOVE(DenseFrequencyContainer2);
47
53
55 itkOverrideGetNameOfClassMacro(DenseFrequencyContainer2);
56
58 itkNewMacro(Self);
59
62
65
68
71
74
77
79
82 void
84
87 void
89
92 bool
94
98 bool
100
105
109 {
110 return m_TotalFrequency;
111 }
112
113protected:
115 ~DenseFrequencyContainer2() override = default;
116 void
117 PrintSelf(std::ostream & os, Indent indent) const override;
118
119private:
121 FrequencyContainerPointer m_FrequencyContainer{};
122 TotalAbsoluteFrequencyType m_TotalFrequency{};
123}; // end of class
124} // end of namespace Statistics
125} // end of namespace itk
126
127#endif
Control indentation during Print() invocation.
Definition: itkIndent.h:50
Light weight base class for most itk classes.
Base class for most ITK classes.
Definition: itkObject.h:62
This class is a container for frequencies of bins in an histogram.
bool IncreaseFrequency(const InstanceIdentifier id, const AbsoluteFrequencyType value)
MeasurementVectorTraits::TotalAbsoluteFrequencyType TotalAbsoluteFrequencyType
TotalAbsoluteFrequencyType GetTotalFrequency() const
void PrintSelf(std::ostream &os, Indent indent) const override
void Initialize(SizeValueType length)
MeasurementVectorTraits::AbsoluteFrequencyType AbsoluteFrequencyType
AbsoluteFrequencyType GetFrequency(const InstanceIdentifier id) const
MeasurementVectorTraits::RelativeFrequencyType RelativeFrequencyType
bool SetFrequency(const InstanceIdentifier id, const AbsoluteFrequencyType value)
MeasurementVectorTraits::InstanceIdentifier InstanceIdentifier
MeasurementVectorTraits::TotalRelativeFrequencyType TotalRelativeFrequencyType
NumericTraits< RelativeFrequencyType >::AccumulateType TotalRelativeFrequencyType
NumericTraits< AbsoluteFrequencyType >::AccumulateType TotalAbsoluteFrequencyType
NumericTraits< AbsoluteFrequencyType >::RealType RelativeFrequencyType
Defines a front-end to the std\::<valarray> container that conforms to the ImageContainerInterface.
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned long SizeValueType
Definition: itkIntTypes.h:86