ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkImageClassifierBase.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 itkImageClassifierBase_h
19#define itkImageClassifierBase_h
20
21#include "itkClassifierBase.h"
22#include "itkMacro.h"
24
25namespace itk
26{
68
69template <typename TInputImage, typename TClassifiedImage>
70class ITK_TEMPLATE_EXPORT ImageClassifierBase : public ClassifierBase<TInputImage>
71{
72public:
73 ITK_DISALLOW_COPY_AND_MOVE(ImageClassifierBase);
74
80
82 itkNewMacro(Self);
83
85 itkOverrideGetNameOfClassMacro(ImageClassifierBase);
86
88 using InputImageType = TInputImage;
89 using InputImagePointer = typename TInputImage::Pointer;
90 using InputImageConstPointer = typename TInputImage::ConstPointer;
91
93 using ClassifiedImagePointer = typename TClassifiedImage::Pointer;
94
96
99
102
104
106
108 using typename Superclass::DecisionRuleType;
109
112 itkSetConstObjectMacro(InputImage, InputImageType);
113 itkGetConstObjectMacro(InputImage, InputImageType);
116 itkSetMacro(ClassifiedImage, ClassifiedImagePointer);
117
119 itkGetConstMacro(ClassifiedImage, ClassifiedImagePointer);
120
123 using InputImagePixelType = typename TInputImage::PixelType;
124
127 using ClassifiedImagePixelType = typename TClassifiedImage::PixelType;
128
132
134 std::vector<double>
136
137protected:
139 ~ImageClassifierBase() override = default;
140 void
141 PrintSelf(std::ostream & os, Indent indent) const override;
142
144 void
146
148 void
149 GenerateData() override;
150
151private:
152 using InputImageSizeType = typename TInputImage::SizeType;
153
156
158 virtual void
160}; // class ImageClassifierBase
161} // namespace itk
162
163#ifndef ITK_MANUAL_INSTANTIATION
164# include "itkImageClassifierBase.hxx"
165#endif
166
167#endif
typename MembershipFunctionType::Pointer MembershipFunctionPointer
Statistics::DecisionRule DecisionRuleType
std::vector< MembershipFunctionPointer > MembershipFunctionPointerVector
Statistics::MembershipFunctionBase< MeasurementVectorType > MembershipFunctionType
typename TInputImage::ValueType MeasurementVectorType
typename TInputImage::PixelType InputImagePixelType
ImageRegionConstIterator< TInputImage > InputImageConstIterator
typename TInputImage::ConstPointer InputImageConstPointer
~ImageClassifierBase() override=default
typename TClassifiedImage::Pointer ClassifiedImagePointer
ClassifierBase< TInputImage > Superclass
typename TInputImage::Pointer InputImagePointer
SmartPointer< const Self > ConstPointer
void PrintSelf(std::ostream &os, Indent indent) const override
std::vector< double > GetPixelMembershipValue(const InputImagePixelType inputImagePixel)
ImageRegionIterator< TClassifiedImage > ClassifiedImageIterator
typename TInputImage::SizeType InputImageSizeType
void GenerateData() override
virtual void Classify()
ClassifiedImagePointer m_ClassifiedImage
InputImageConstPointer m_InputImage
typename TClassifiedImage::PixelType ClassifiedImagePixelType
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.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....