ITK  5.2.0
Insight Toolkit
itkEigenAnalysis2DImageFilter.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  * 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 itkEigenAnalysis2DImageFilter_h
19 #define itkEigenAnalysis2DImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
22 
23 namespace itk
24 {
43 template <typename TInputImage, typename TEigenValueImage, typename TEigenVectorImage>
44 class ITK_TEMPLATE_EXPORT EigenAnalysis2DImageFilter : public ImageToImageFilter<TInputImage, TEigenValueImage>
45 {
46 public:
47  ITK_DISALLOW_COPY_AND_MOVE(EigenAnalysis2DImageFilter);
48 
54 
57 
59  itkNewMacro(Self);
60 
62  using EigenVectorType = typename TEigenVectorImage::PixelType;
63  using VectorComponentType = typename EigenVectorType::ValueType;
64 
66  using OutputImageRegionType = typename Superclass::OutputImageRegionType;
67 
69  using EigenValueImageType = TEigenValueImage;
70  using EigenValueImagePointer = typename EigenValueImageType::Pointer;
72  using EigenValueImagePixelType = typename EigenValueImageType::PixelType;
73  using EigenVectorImageType = TEigenVectorImage;
74  using EigenVectorImagePointer = typename EigenVectorImageType::Pointer;
76  using EigenVectorImagePixelType = typename EigenVectorImageType::PixelType;
77 
79  static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
80 
83  void
84  SetInput1(TInputImage * image);
85 
90  void
91  SetInput2(TInputImage * image);
92 
95  void
96  SetInput3(TInputImage * image);
97 
100  GetMaxEigenValue();
101 
104  GetMinEigenValue();
105 
109  GetMaxEigenVector();
110 
113  using Superclass::MakeOutput;
115  MakeOutput(DataObjectPointerArraySizeType idx) override;
116 
117 #ifdef ITK_USE_CONCEPT_CHECKING
118  // Begin concept checking
119  itkConceptMacro(VectorComponentHasNumericTraitsCheck, (Concept::HasNumericTraits<VectorComponentType>));
120  // End concept checking
121 #endif
122 
123 protected:
125  ~EigenAnalysis2DImageFilter() override = default;
126 
127  void
128  GenerateData() override;
129 };
130 } // end namespace itk
131 
132 #ifndef ITK_MANUAL_INSTANTIATION
133 # include "itkEigenAnalysis2DImageFilter.hxx"
134 #endif
135 
136 #endif
itk::EigenAnalysis2DImageFilter::EigenVectorImagePixelType
typename EigenVectorImageType::PixelType EigenVectorImagePixelType
Definition: itkEigenAnalysis2DImageFilter.h:76
itk::EigenAnalysis2DImageFilter::EigenVectorImageType
TEigenVectorImage EigenVectorImageType
Definition: itkEigenAnalysis2DImageFilter.h:73
itk::Concept::HasNumericTraits
Definition: itkConceptChecking.h:714
itk::EigenAnalysis2DImageFilter::EigenVectorType
typename TEigenVectorImage::PixelType EigenVectorType
Definition: itkEigenAnalysis2DImageFilter.h:62
itk::EigenAnalysis2DImageFilter::OutputImageRegionType
typename Superclass::OutputImageRegionType OutputImageRegionType
Definition: itkEigenAnalysis2DImageFilter.h:66
itk::EigenAnalysis2DImageFilter::VectorComponentType
typename EigenVectorType::ValueType VectorComponentType
Definition: itkEigenAnalysis2DImageFilter.h:63
itk::SmartPointer< Self >
itk::ProcessObject::DataObjectPointerArraySizeType
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
Definition: itkProcessObject.h:193
itk::EigenAnalysis2DImageFilter::EigenValueImageRegionType
typename EigenValueImageType::RegionType EigenValueImageRegionType
Definition: itkEigenAnalysis2DImageFilter.h:71
itk::EigenAnalysis2DImageFilter::EigenValueImageType
TEigenValueImage EigenValueImageType
Definition: itkEigenAnalysis2DImageFilter.h:69
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:59
itk::EigenAnalysis2DImageFilter::EigenVectorImagePointer
typename EigenVectorImageType::Pointer EigenVectorImagePointer
Definition: itkEigenAnalysis2DImageFilter.h:74
itk::GTest::TypedefsAndConstructors::Dimension2::RegionType
ImageBaseType::RegionType RegionType
Definition: itkGTestTypedefsAndConstructors.h:54
itk::EigenAnalysis2DImageFilter::EigenValueImagePixelType
typename EigenValueImageType::PixelType EigenValueImagePixelType
Definition: itkEigenAnalysis2DImageFilter.h:72
itk::EigenAnalysis2DImageFilter::EigenVectorImageRegionType
typename EigenVectorImageType::RegionType EigenVectorImageRegionType
Definition: itkEigenAnalysis2DImageFilter.h:75
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::EigenAnalysis2DImageFilter
Computes pixel-wise the eigen values and eigen vectors of a 2D symmetrical matrix.
Definition: itkEigenAnalysis2DImageFilter.h:44
itk::EigenAnalysis2DImageFilter::EigenValueImagePointer
typename EigenValueImageType::Pointer EigenValueImagePointer
Definition: itkEigenAnalysis2DImageFilter.h:70