ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkEigenAnalysis2DImageFilter.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 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:
45  public ImageToImageFilter< TInputImage, TEigenValueImage >
46 {
47 public:
48  ITK_DISALLOW_COPY_AND_ASSIGN(EigenAnalysis2DImageFilter);
49 
55 
58 
60  itkNewMacro(Self);
61 
63  using EigenVectorType = typename TEigenVectorImage::PixelType;
64  using VectorComponentType = typename EigenVectorType::ValueType;
65 
67  using OutputImageRegionType = typename Superclass::OutputImageRegionType;
68 
70  using EigenValueImageType = TEigenValueImage;
71  using EigenValueImagePointer = typename EigenValueImageType::Pointer;
73  using EigenValueImagePixelType = typename EigenValueImageType::PixelType;
74  using EigenVectorImageType = TEigenVectorImage;
75  using EigenVectorImagePointer = typename EigenVectorImageType::Pointer;
77  using EigenVectorImagePixelType = typename EigenVectorImageType::PixelType;
78 
80  static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
81 
84  void SetInput1(TInputImage *image1);
85 
90  void SetInput2(TInputImage *image2);
91 
94  void SetInput3(TInputImage *image3);
95 
97  EigenValueImageType * GetMaxEigenValue();
98 
100  EigenValueImageType * GetMinEigenValue();
101 
104  EigenVectorImageType * GetMaxEigenVector();
105 
108  using Superclass::MakeOutput;
109  DataObject::Pointer MakeOutput(DataObjectPointerArraySizeType idx) override;
110 
111 #ifdef ITK_USE_CONCEPT_CHECKING
112  // Begin concept checking
113  itkConceptMacro( VectorComponentHasNumericTraitsCheck,
115  // End concept checking
116 #endif
117 
118 protected:
120  ~EigenAnalysis2DImageFilter() override = default;
121 
122  void GenerateData() override;
123 };
124 } // end namespace itk
125 
126 #ifndef ITK_MANUAL_INSTANTIATION
127 #include "itkEigenAnalysis2DImageFilter.hxx"
128 #endif
129 
130 #endif
typename EigenValueImageType::RegionType EigenValueImageRegionType
Light weight base class for most itk classes.
typename EigenVectorImageType::Pointer EigenVectorImagePointer
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
typename Superclass::OutputImageRegionType OutputImageRegionType
typename EigenValueImageType::PixelType EigenValueImagePixelType
typename EigenValueImageType::Pointer EigenValueImagePointer
typename EigenVectorImageType::RegionType EigenVectorImageRegionType
typename EigenVectorImageType::PixelType EigenVectorImagePixelType
Computes pixel-wise the eigen values and eigen vectors of a 2D symmetrical matrix.
typename TEigenVectorImage::PixelType EigenVectorType
Base class for filters that take an image as input and produce an image as output.
typename EigenVectorType::ValueType VectorComponentType
#define itkConceptMacro(name, concept)