ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkHessianToObjectnessMeasureImageFilter.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 itkHessianToObjectnessMeasureImageFilter_h
19#define itkHessianToObjectnessMeasureImageFilter_h
20
23
24namespace itk
25{
54template <typename TInputImage, typename TOutputImage>
55class ITK_TEMPLATE_EXPORT HessianToObjectnessMeasureImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
56{
57public:
58 ITK_DISALLOW_COPY_AND_MOVE(HessianToObjectnessMeasureImageFilter);
59
65
66 using typename Superclass::InputImageType;
67 using typename Superclass::OutputImageType;
68 using InputPixelType = typename InputImageType::PixelType;
69 using OutputPixelType = typename OutputImageType::PixelType;
70 using OutputImageRegionType = typename OutputImageType::RegionType;
71
73 static constexpr unsigned int ImageDimension = InputImageType::ImageDimension;
74
75 using EigenValueType = double;
77
79 itkNewMacro(Self);
80
82 itkOverrideGetNameOfClassMacro(HessianToObjectnessMeasureImageFilter);
83
87 itkSetMacro(Alpha, double);
88 itkGetConstMacro(Alpha, double);
90
94 itkSetMacro(Beta, double);
95 itkGetConstMacro(Beta, double);
97
100 itkSetMacro(Gamma, double);
101 itkGetConstMacro(Gamma, double);
103
106 itkSetMacro(ScaleObjectnessMeasure, bool);
107 itkGetConstMacro(ScaleObjectnessMeasure, bool);
108 itkBooleanMacro(ScaleObjectnessMeasure);
110
114 itkSetMacro(ObjectDimension, unsigned int);
115 itkGetConstMacro(ObjectDimension, unsigned int);
117
120 itkSetMacro(BrightObject, bool);
121 itkGetConstMacro(BrightObject, bool);
122 itkBooleanMacro(BrightObject);
124
125 itkConceptMacro(DoubleConvertibleToOutputCheck, (Concept::Convertible<double, OutputPixelType>));
126
127protected:
130 void
131 PrintSelf(std::ostream & os, Indent indent) const override;
132
133 void
134 VerifyPreconditions() const override;
135
136 void
137 DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
138
139
140private:
141 // functor used to sort the eigenvalues are to be sorted
142 // |e1|<=|e2|<=...<=|eN|
143 //
144 // Returns ( itk::Math::abs(a) < itk::Math::abs(b) )
146 {
147 bool
152 };
153
154 double m_Alpha{ 0.5 };
155 double m_Beta{ 0.5 };
156 double m_Gamma{ 5.0 };
157 unsigned int m_ObjectDimension{ 1 };
158 bool m_BrightObject{ true };
160};
161} // end namespace itk
162
163#ifndef ITK_MANUAL_INSTANTIATION
164# include "itkHessianToObjectnessMeasureImageFilter.hxx"
165#endif
166
167#endif
Simulate a standard C array with copy semantics.
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
void VerifyPreconditions() const override
Verifies that the process object has been configured correctly, that all required inputs are set,...
itk::FixedArray< EigenValueType, Self::ImageDimension > EigenValueArrayType
ImageToImageFilter< TInputImage, TOutputImage > Superclass
void PrintSelf(std::ostream &os, Indent indent) const override
~HessianToObjectnessMeasureImageFilter() override=default
TOutputImage OutputImageType
Control indentation during Print() invocation.
Definition itkIndent.h:50
Implements transparent reference counting.
#define itkConceptMacro(name, concept)
bool abs(bool x)
Definition itkMath.h:837
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....