ITK  4.4.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< class TInputImage, class TEigenValueImage, class TEigenVectorImage >
44 class ITK_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(void);
97 
99  EigenValueImageType * GetMinEigenValue(void);
100 
103  EigenVectorImageType * GetMaxEigenVector(void);
104 
107  using Superclass::MakeOutput;
109 
110 #ifdef ITK_USE_CONCEPT_CHECKING
111 
112  itkConceptMacro( VectorComponentHasNumericTraitsCheck,
114 
116 #endif
117 
118 protected:
121 
122  void GenerateData(void);
123 
124 private:
125  EigenAnalysis2DImageFilter(const Self &); //purposely not implemented
126  void operator=(const Self &); //purposely not implemented
127 };
128 } // end namespace itk
129 
130 #ifndef ITK_MANUAL_INSTANTIATION
131 #include "itkEigenAnalysis2DImageFilter.hxx"
132 #endif
133 
134 #endif
135