ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkBayesianClassifierInitializationImageFilter.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 itkBayesianClassifierInitializationImageFilter_h
19#define itkBayesianClassifierInitializationImageFilter_h
20
21#include "itkVectorImage.h"
22#include "itkVectorContainer.h"
26
27namespace itk
28{
76template <typename TInputImage, typename TProbabilityPrecisionType = float>
78 : public ImageToImageFilter<TInputImage, VectorImage<TProbabilityPrecisionType, TInputImage::ImageDimension>>
79{
80public:
81 ITK_DISALLOW_COPY_AND_MOVE(BayesianClassifierInitializationImageFilter);
82
85 using InputImageType = TInputImage;
86 using ProbabilityPrecisionType = TProbabilityPrecisionType;
87
89 static constexpr unsigned int Dimension = InputImageType::ImageDimension;
90
95
97 itkNewMacro(Self);
98
100 itkOverrideGetNameOfClassMacro(BayesianClassifierInitializationImageFilter);
101
104
106 using InputPixelType = typename InputImageType::PixelType;
108
116
119
123
127
133 virtual void
135 itkGetModifiableObjectMacro(MembershipFunctionContainer, MembershipFunctionContainerType);
137
139 itkSetMacro(NumberOfClasses, unsigned int);
140 itkGetConstMacro(NumberOfClasses, unsigned int);
142
143 void
145
146 itkConceptMacro(InputMultiplyOperatorCheck, (Concept::MultiplyOperator<InputPixelType>));
147 itkConceptMacro(DoubleConvertibleToProbabilityCheck, (Concept::Convertible<double, TProbabilityPrecisionType>));
148 itkConceptMacro(InputHasNumericTraitsCheck, (Concept::HasNumericTraits<InputPixelType>));
151
152protected:
155 void
156 PrintSelf(std::ostream & os, Indent indent) const override;
157
163 virtual void
165
168 void
169 GenerateData() override;
170
171private:
173 unsigned int m_NumberOfClasses{ 0 };
174
176};
177} // end namespace itk
178
179#ifndef ITK_MANUAL_INSTANTIATION
180# include "itkBayesianClassifierInitializationImageFilter.hxx"
181#endif
182
183#endif
typename MembershipFunctionContainerType::Pointer MembershipFunctionContainerPointer
~BayesianClassifierInitializationImageFilter() override=default
ImageToImageFilter< InputImageType, OutputImageType > Superclass
void PrintSelf(std::ostream &os, Indent indent) const override
VectorImage< ProbabilityPrecisionType, Self::Dimension > MembershipImageType
VectorImage< ProbabilityPrecisionType, Self::Dimension > OutputImageType
Statistics::MembershipFunctionBase< MeasurementVectorType > MembershipFunctionType
VectorContainer< unsigned int, MembershipFunctionPointer > MembershipFunctionContainerType
virtual void SetMembershipFunctions(MembershipFunctionContainerType *membershipFunction)
A multi-dimensional iterator templated over image type that walks a region of pixels.
A multi-dimensional iterator templated over image type that walks a region of pixels.
Control indentation during Print() invocation.
Definition itkIndent.h:50
Implements transparent reference counting.
MembershipFunctionBase defines common interfaces for membership functions.
Templated n-dimensional vector image class.
VariableLengthVector< ProbabilityPrecisionType > PixelType
A templated class holding a n-Dimensional vector.
Definition itkVector.h:63
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
detail::VectorContainer< std::conditional_t< std::is_void_v< T2 >, SizeValueType, T1 >, std::conditional_t< std::is_void_v< T2 >, T1, T2 > > VectorContainer