ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkScalarImageToHistogramGenerator.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 itkScalarImageToHistogramGenerator_h
19#define itkScalarImageToHistogramGenerator_h
20
23#include "itkHistogram.h"
24#include "itkObject.h"
25
26namespace itk::Statistics
27{
34template <typename TImageType>
35class ITK_TEMPLATE_EXPORT ScalarImageToHistogramGenerator : public Object
36{
37public:
38 ITK_DISALLOW_COPY_AND_MOVE(ScalarImageToHistogramGenerator);
39
45
47 itkOverrideGetNameOfClassMacro(ScalarImageToHistogramGenerator);
48
50 itkNewMacro(Self);
51
52 using ImageType = TImageType;
55 using PixelType = typename ImageType::PixelType;
57
60
62
65
66public:
68 void
70
73 void
75
79 const HistogramType *
80 GetOutput() const;
81
83 void
84 SetNumberOfBins(unsigned int numberOfBins);
85
87 void
88 SetMarginalScale(double marginalScale);
89
93 void
95
99 void
101
105 void
107
108protected:
111 void
112 PrintSelf(std::ostream & os, Indent indent) const override;
113
114private:
116
118};
119} // namespace itk::Statistics
120
121#ifndef ITK_MANUAL_INSTANTIATION
122# include "itkScalarImageToHistogramGenerator.hxx"
123#endif
124
125#endif
Control indentation during Print() invocation.
Definition itkIndent.h:50
Implements transparent reference counting.
This class stores measurement vectors in the context of n-dimensional histogram.
SmartPointer< const Self > ConstPointer
This class provides ListSample interface to ITK Image.
Computes the Histogram corresponding to a Sample.
void SetHistogramMax(RealPixelType maximumValue)
void PrintSelf(std::ostream &os, Indent indent) const override
void SetNumberOfBins(unsigned int numberOfBins)
itk::Statistics::ImageToListSampleAdaptor< ImageType > AdaptorType
typename NumericTraits< PixelType >::RealType RealPixelType
void SetHistogramMin(RealPixelType minimumValue)
itk::Statistics::SampleToHistogramFilter< AdaptorType, HistogramType > GeneratorType