ITK  4.13.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:
53 
56 
58  itkNewMacro(Self);
59 
61  typedef typename TEigenVectorImage::PixelType EigenVectorType;
62  typedef typename EigenVectorType::ValueType VectorComponentType;
63 
65  typedef typename Superclass::OutputImageRegionType OutputImageRegionType;
66 
68  typedef TEigenValueImage EigenValueImageType;
69  typedef typename EigenValueImageType::Pointer EigenValueImagePointer;
70  typedef typename EigenValueImageType::RegionType EigenValueImageRegionType;
71  typedef typename EigenValueImageType::PixelType EigenValueImagePixelType;
72  typedef TEigenVectorImage EigenVectorImageType;
73  typedef typename EigenVectorImageType::Pointer EigenVectorImagePointer;
74  typedef typename EigenVectorImageType::RegionType EigenVectorImageRegionType;
75  typedef typename EigenVectorImageType::PixelType EigenVectorImagePixelType;
76 
78  itkStaticConstMacro(ImageDimension, unsigned int,
79  TInputImage::ImageDimension);
80 
83  void SetInput1(TInputImage *image1);
84 
89  void SetInput2(TInputImage *image2);
90 
93  void SetInput3(TInputImage *image3);
94 
96  EigenValueImageType * GetMaxEigenValue();
97 
99  EigenValueImageType * GetMinEigenValue();
100 
103  EigenVectorImageType * GetMaxEigenVector();
104 
107  using Superclass::MakeOutput;
108  DataObject::Pointer MakeOutput(DataObjectPointerArraySizeType idx) ITK_OVERRIDE;
109 
110 #ifdef ITK_USE_CONCEPT_CHECKING
111  // Begin concept checking
112  itkConceptMacro( VectorComponentHasNumericTraitsCheck,
114  // End concept checking
115 #endif
116 
117 protected:
119  virtual ~EigenAnalysis2DImageFilter() ITK_OVERRIDE {}
120 
121  void GenerateData(void) ITK_OVERRIDE;
122 
123 private:
124  ITK_DISALLOW_COPY_AND_ASSIGN(EigenAnalysis2DImageFilter);
125 };
126 } // end namespace itk
127 
128 #ifndef ITK_MANUAL_INSTANTIATION
129 #include "itkEigenAnalysis2DImageFilter.hxx"
130 #endif
131 
132 #endif
Light weight base class for most itk classes.
TEigenVectorImage::PixelType EigenVectorType
EigenValueImageType::PixelType EigenValueImagePixelType
EigenVectorImageType::RegionType EigenVectorImageRegionType
ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
EigenVectorType::ValueType VectorComponentType
EigenVectorImageType::Pointer EigenVectorImagePointer
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
EigenVectorImageType::PixelType EigenVectorImagePixelType
Computes pixel-wise the eigen values and eigen vectors of a 2D symmetrical matrix.
Base class for filters that take an image as input and produce an image as output.
ImageToImageFilter< TInputImage, TEigenValueImage > Superclass
EigenValueImageType::RegionType EigenValueImageRegionType
Superclass::OutputImageRegionType OutputImageRegionType
#define itkConceptMacro(name, concept)
EigenValueImageType::Pointer EigenValueImagePointer