ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkObjectnessMeasureImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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  * http://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 
21 #include "itkImageToImageFilter.h"
22 
23 namespace itk
24 {
75 template< typename TInputImage, typename TOutputImage >
77  : public ImageToImageFilter< TInputImage, TOutputImage >
78 {
79 public:
80  ITK_DISALLOW_COPY_AND_ASSIGN(ObjectnessMeasureImageFilter);
81 
84 
86 
89 
92 
93  using InternalType = double;
94 
96  static constexpr unsigned int ImageDimension = InputImageType::ImageDimension;
97 
98 
100  itkNewMacro(Self);
101 
104 
105 
109  itkSetMacro(Alpha, double);
110  itkGetConstMacro(Alpha, double);
112 
116  itkSetMacro(Beta, double);
117  itkGetConstMacro(Beta, double);
119 
122  itkSetMacro(Gamma, double);
123  itkGetConstMacro(Gamma, double);
125 
128  itkSetMacro(ScaleObjectnessMeasure, bool);
129  itkGetConstMacro(ScaleObjectnessMeasure, bool);
130  itkBooleanMacro(ScaleObjectnessMeasure);
132 
136  itkSetMacro(ObjectDimension, unsigned int);
137  itkGetConstMacro(ObjectDimension, unsigned int);
139 
142  itkSetMacro(BrightObject, bool);
143  itkGetConstMacro(BrightObject, bool);
144  itkBooleanMacro(BrightObject);
146 
147 
148 protected:
150 
152 
153 
154  void EnlargeOutputRequestedRegion(DataObject *output) override;
155 
156  void GenerateData() override;
157 
158  void PrintSelf(std::ostream & os, Indent indent) const override;
159 
160 private:
161  double m_Alpha;
162  double m_Beta;
163  double m_Gamma;
164  unsigned int m_ObjectDimension;
167 
168 };
169 
170 }
171 
172 
173 #ifndef ITK_MANUAL_INSTANTIATION
174 #include "itkObjectnessMeasureImageFilter.hxx"
175 #endif
176 
177 #endif // itkObjectnessMeasureImageFilter_h
void EnlargeOutputRequestedRegion(DataObject *output) override
Enhance M-dimensional objects in N-dimensional images.
void PrintSelf(std::ostream &os, Indent indent) const override
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Base class for all process objects that output image data.
TOutputImage OutputImageType
Base class for filters that take an image as input and produce an image as output.
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Base class for all data objects in ITK.