ITK  5.4.0
Insight Toolkit
itkDifferenceOfGaussiansGradientImageFilter.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 itkDifferenceOfGaussiansGradientImageFilter_h
19 #define itkDifferenceOfGaussiansGradientImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
22 #include "itkCovariantVector.h"
23 
24 namespace itk
25 {
35 template <typename TInputImage, typename TDataType>
37  : public ImageToImageFilter<
38  TInputImage,
39  Image<CovariantVector<TDataType, TInputImage::ImageDimension>, TInputImage::ImageDimension>>
40 {
41 public:
42  ITK_DISALLOW_COPY_AND_MOVE(DifferenceOfGaussiansGradientImageFilter);
43 
45  static constexpr unsigned int NDimensions = TInputImage::ImageDimension;
46 
49 
53 
58 
60  itkNewMacro(Self);
61 
63  itkOverrideGetNameOfClassMacro(DifferenceOfGaussiansGradientImageFilter);
64 
67 
70 
72  using PixelType = typename TInputImage::PixelType;
73 
76 
78  itkGetConstMacro(Width, unsigned int);
79  itkSetMacro(Width, unsigned int);
82 #ifdef ITK_USE_CONCEPT_CHECKING
83  // Begin concept checking
84  itkConceptMacro(DataTypeHasNumericTraitsCheck, (Concept::HasNumericTraits<TDataType>));
85  // End concept checking
86 #endif
87 
88 protected:
90  ~DifferenceOfGaussiansGradientImageFilter() override = default;
91  void
92  PrintSelf(std::ostream & os, Indent indent) const override;
93 
95  void
96  GenerateData() override;
97 
98 private:
99  unsigned int m_Width{};
100 };
101 } // end namespace itk
102 
103 #ifndef ITK_MANUAL_INSTANTIATION
104 # include "itkDifferenceOfGaussiansGradientImageFilter.hxx"
105 #endif
106 
107 #endif
itkCovariantVector.h
itk::Concept::HasNumericTraits
Definition: itkConceptChecking.h:714
itk::DifferenceOfGaussiansGradientImageFilter::IndexType
typename TInputImage::IndexType IndexType
Definition: itkDifferenceOfGaussiansGradientImageFilter.h:69
itk::Size
Represent a n-dimensional size (bounds) of a n-dimensional image.
Definition: itkSize.h:71
itk::DifferenceOfGaussiansGradientImageFilter::OutputImageRegionType
typename TInputImage::RegionType OutputImageRegionType
Definition: itkDifferenceOfGaussiansGradientImageFilter.h:75
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::GTest::TypedefsAndConstructors::Dimension2::IndexType
ImageBaseType::IndexType IndexType
Definition: itkGTestTypedefsAndConstructors.h:50
itk::ImageToImageFilter
Base class for filters that take an image as input and produce an image as output.
Definition: itkImageToImageFilter.h:108
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:55
itk::DifferenceOfGaussiansGradientImageFilter::PixelType
typename TInputImage::PixelType PixelType
Definition: itkDifferenceOfGaussiansGradientImageFilter.h:72
itk::GTest::TypedefsAndConstructors::Dimension2::RegionType
ImageBaseType::RegionType RegionType
Definition: itkGTestTypedefsAndConstructors.h:54
itkImageToImageFilter.h
itkConceptMacro
#define itkConceptMacro(name, concept)
Definition: itkConceptChecking.h:65
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::Image
Templated n-dimensional image class.
Definition: itkImage.h:88
itk::DifferenceOfGaussiansGradientImageFilter
Performs difference-of-gaussians gradient detection.
Definition: itkDifferenceOfGaussiansGradientImageFilter.h:36