ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkObjectnessMeasureImageFilter.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 itkObjectnessMeasureImageFilter_h
19#define itkObjectnessMeasureImageFilter_h
20
22
23namespace itk
24{
73template <typename TInputImage, typename TOutputImage>
74class ObjectnessMeasureImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
75{
76public:
77 ITK_DISALLOW_COPY_AND_MOVE(ObjectnessMeasureImageFilter);
78
81
83
86
89
90 using InternalType = double;
91
93 static constexpr unsigned int ImageDimension = InputImageType::ImageDimension;
94
95
97 itkNewMacro(Self);
98
100 itkOverrideGetNameOfClassMacro(ObjectnessMeasureImageFilter);
101
102
106 itkSetMacro(Alpha, double);
107 itkGetConstMacro(Alpha, double);
108
112 itkSetMacro(Beta, double);
113 itkGetConstMacro(Beta, double);
114
117 itkSetMacro(Gamma, double);
118 itkGetConstMacro(Gamma, double);
119
122 itkSetMacro(ScaleObjectnessMeasure, bool);
123 itkGetConstMacro(ScaleObjectnessMeasure, bool);
124 itkBooleanMacro(ScaleObjectnessMeasure);
125
129 itkSetMacro(ObjectDimension, unsigned int);
130 itkGetConstMacro(ObjectDimension, unsigned int);
131
134 itkSetMacro(BrightObject, bool);
135 itkGetConstMacro(BrightObject, bool);
136 itkBooleanMacro(BrightObject);
137
138
139protected:
141
143
144
145 void
147
148 void
149 GenerateData() override;
150
151 void
152 PrintSelf(std::ostream & os, Indent indent) const override;
153
154private:
155 double m_Alpha;
156 double m_Beta;
157 double m_Gamma;
158 unsigned int m_ObjectDimension;
161};
162
163} // namespace itk
164
165
166#ifndef ITK_MANUAL_INSTANTIATION
167# include "itkObjectnessMeasureImageFilter.hxx"
168#endif
169
170#endif // itkObjectnessMeasureImageFilter_h
Base class for all data objects in ITK.
TOutputImage OutputImageType
Control indentation during Print() invocation.
Definition itkIndent.h:53
typename Superclass::OutputImageType OutputImageType
void EnlargeOutputRequestedRegion(DataObject *output) override
void PrintSelf(std::ostream &os, Indent indent) const override
ImageToImageFilter< TInputImage, TOutputImage > Superclass
typename Superclass::InputImageType InputImageType
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
#define itkSetMacro(name, type)