ITK  4.8.0
Insight Segmentation and Registration Toolkit
itkHessianToObjectnessMeasureImageFilter.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 itkHessianToObjectnessMeasureImageFilter_h
19 #define itkHessianToObjectnessMeasureImageFilter_h
20 
22 #include "itkImageToImageFilter.h"
23 
24 namespace itk
25 {
61 template< typename TInputImage, typename TOutputImage >
63  ImageToImageFilter< TInputImage, TOutputImage >
64 {
65 public:
68 
70 
73 
76  typedef typename InputImageType::PixelType InputPixelType;
77  typedef typename OutputImageType::PixelType OutputPixelType;
78  typedef typename OutputImageType::RegionType OutputImageRegionType;
79 
81  itkStaticConstMacro(ImageDimension, unsigned int, InputImageType ::ImageDimension);
82 
83  typedef double EigenValueType;
85 
87  itkNewMacro(Self);
88 
91 
95  itkSetMacro(Alpha, double);
96  itkGetConstMacro(Alpha, double);
98 
102  itkSetMacro(Beta, double);
103  itkGetConstMacro(Beta, double);
105 
108  itkSetMacro(Gamma, double);
109  itkGetConstMacro(Gamma, double);
111 
114  itkSetMacro(ScaleObjectnessMeasure, bool);
115  itkGetConstMacro(ScaleObjectnessMeasure, bool);
116  itkBooleanMacro(ScaleObjectnessMeasure);
118 
122  itkSetMacro(ObjectDimension, unsigned int);
123  itkGetConstMacro(ObjectDimension, unsigned int);
125 
128  itkSetMacro(BrightObject, bool);
129  itkGetConstMacro(BrightObject, bool);
130  itkBooleanMacro(BrightObject);
132 
133 #ifdef ITK_USE_CONCEPT_CHECKING
134  // Begin concept checking
135  itkConceptMacro( DoubleConvertibleToOutputCheck, ( Concept::Convertible< double, OutputPixelType > ) );
136  // End concept checking
137 #endif
138 
139 protected:
142  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
143 
144  void BeforeThreadedGenerateData() ITK_OVERRIDE;
145 
146  void ThreadedGenerateData(const OutputImageRegionType & outputRegionForThread, ThreadIdType threadId) ITK_OVERRIDE;
147 
148 private:
149  HessianToObjectnessMeasureImageFilter(const Self &); //purposely not
150  // implemented
151  void operator=(const Self &); //purposely not
152  // implemented
153 
154  // functor used to sort the eigenvalues are to be sorted
155  // |e1|<=|e2|<=...<=|eN|
162  {
163  return vnl_math_abs(a) <= vnl_math_abs(b);
164  }
165  };
166 
167  double m_Alpha;
168  double m_Beta;
169  double m_Gamma;
170  unsigned int m_ObjectDimension;
173 };
174 } // end namespace itk
175 
176 #ifndef ITK_MANUAL_INSTANTIATION
177 #include "itkHessianToObjectnessMeasureImageFilter.hxx"
178 #endif
179 
180 #endif
void ThreadedGenerateData(const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId) override
A filter to enhance M-dimensional objects in N-dimensional images.
Base class for all process objects that output image data.
Simulate a standard C array with copy semnatics.
Definition: itkFixedArray.h:50
unsigned int ThreadIdType
Definition: itkIntTypes.h:159
void PrintSelf(std::ostream &os, Indent indent) const override
ImageToImageFilter< TInputImage, TOutputImage > Superclass
itk::FixedArray< EigenValueType, itkGetStaticConstMacro(ImageDimension) > EigenValueArrayType
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
TOutputImage OutputImageType
#define itkConceptMacro(name, concept)