ITK  4.8.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 >
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 
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 
97 
100 
104 
109 
110 #ifdef ITK_USE_CONCEPT_CHECKING
111  // Begin concept checking
112  itkConceptMacro( VectorComponentHasNumericTraitsCheck,
114  // End concept checking
115 #endif
116 
117 protected:
120 
121  void GenerateData(void) ITK_OVERRIDE;
122 
123 private:
124  EigenAnalysis2DImageFilter(const Self &); //purposely not implemented
125  void operator=(const Self &); //purposely not implemented
126 };
127 } // end namespace itk
128 
129 #ifndef ITK_MANUAL_INSTANTIATION
130 #include "itkEigenAnalysis2DImageFilter.hxx"
131 #endif
132 
133 #endif
virtual ProcessObject::DataObjectPointer MakeOutput(ProcessObject::DataObjectPointerArraySizeType idx) override
Light weight base class for most itk classes.
TEigenVectorImage::PixelType EigenVectorType
EigenValueImageType::PixelType EigenValueImagePixelType
EigenVectorImageType::RegionType EigenVectorImageRegionType
ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
void GenerateData(void) override
EigenVectorImageType * GetMaxEigenVector()
void SetInput3(TInputImage *image3)
EigenVectorType::ValueType VectorComponentType
EigenVectorImageType::Pointer EigenVectorImagePointer
void SetInput1(TInputImage *image1)
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
EigenVectorImageType::PixelType EigenVectorImagePixelType
Computes pixel-wise the eigen values and eigen vectors of a 2D symmetrical matrix.
EigenValueImageType * GetMinEigenValue()
Base class for filters that take an image as input and produce an image as output.
ImageToImageFilter< TInputImage, TEigenValueImage > Superclass
EigenValueImageType::RegionType EigenValueImageRegionType
DataObject::Pointer MakeOutput(DataObjectPointerArraySizeType idx) override
Superclass::OutputImageRegionType OutputImageRegionType
EigenValueImageType * GetMaxEigenValue()
#define itkConceptMacro(name, concept)
void SetInput2(TInputImage *image2)
EigenValueImageType::Pointer EigenValueImagePointer