ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkEigenAnalysis2DImageFilter.h
Go to the documentation of this file.
00001 /*=========================================================================
00002  *
00003  *  Copyright Insight Software Consortium
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License");
00006  *  you may not use this file except in compliance with the License.
00007  *  You may obtain a copy of the License at
00008  *
00009  *         http://www.apache.org/licenses/LICENSE-2.0.txt
00010  *
00011  *  Unless required by applicable law or agreed to in writing, software
00012  *  distributed under the License is distributed on an "AS IS" BASIS,
00013  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *  See the License for the specific language governing permissions and
00015  *  limitations under the License.
00016  *
00017  *=========================================================================*/
00018 #ifndef __itkEigenAnalysis2DImageFilter_h
00019 #define __itkEigenAnalysis2DImageFilter_h
00020 
00021 #include "itkImageToImageFilter.h"
00022 
00023 namespace itk
00024 {
00043 template< class TInputImage, class TEigenValueImage, class TEigenVectorImage >
00044 class ITK_EXPORT EigenAnalysis2DImageFilter:
00045   public ImageToImageFilter< TInputImage, TEigenValueImage >
00046 {
00047 public:
00049   typedef EigenAnalysis2DImageFilter                          Self;
00050   typedef ImageToImageFilter< TInputImage, TEigenValueImage > Superclass;
00051   typedef SmartPointer< Self >                                Pointer;
00052   typedef SmartPointer< const Self >                          ConstPointer;
00053 
00055   itkTypeMacro(EigenAnalysis2DImageFilter, ImageToImageFilter);
00056 
00058   itkNewMacro(Self);
00059 
00061   typedef typename TEigenVectorImage::PixelType EigenVectorType;
00062   typedef typename EigenVectorType::ValueType   VectorComponentType;
00063 
00065   typedef typename Superclass::OutputImageRegionType OutputImageRegionType;
00066 
00068   typedef TEigenValueImage                          EigenValueImageType;
00069   typedef typename EigenValueImageType::Pointer     EigenValueImagePointer;
00070   typedef typename EigenValueImageType::RegionType  EigenValueImageRegionType;
00071   typedef typename EigenValueImageType::PixelType   EigenValueImagePixelType;
00072   typedef TEigenVectorImage                         EigenVectorImageType;
00073   typedef typename EigenVectorImageType::Pointer    EigenVectorImagePointer;
00074   typedef typename EigenVectorImageType::RegionType EigenVectorImageRegionType;
00075   typedef typename EigenVectorImageType::PixelType  EigenVectorImagePixelType;
00076 
00078   itkStaticConstMacro(ImageDimension, unsigned int,
00079                       TInputImage::ImageDimension);
00080 
00083   void SetInput1(TInputImage *image1);
00084 
00089   void SetInput2(TInputImage *image2);
00090 
00093   void SetInput3(TInputImage *image3);
00094 
00096   EigenValueImageType * GetMaxEigenValue(void);
00097 
00099   EigenValueImageType * GetMinEigenValue(void);
00100 
00103   EigenVectorImageType * GetMaxEigenVector(void);
00104 
00106   typedef ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType;
00107   using Superclass::MakeOutput;
00108   DataObject::Pointer MakeOutput(DataObjectPointerArraySizeType idx);
00109 
00110 #ifdef ITK_USE_CONCEPT_CHECKING
00111 
00112   itkConceptMacro( VectorComponentHasNumericTraitsCheck,
00113                    ( Concept::HasNumericTraits< VectorComponentType > ) );
00114 
00116 #endif
00117 protected:
00118   EigenAnalysis2DImageFilter();
00119   virtual ~EigenAnalysis2DImageFilter() {}
00120 
00121   void GenerateData(void);
00122 
00123 private:
00124   EigenAnalysis2DImageFilter(const Self &); //purposely not implemented
00125   void operator=(const Self &);             //purposely not implemented
00126 };
00127 } // end namespace itk
00128 
00129 #ifndef ITK_MANUAL_INSTANTIATION
00130 #include "itkEigenAnalysis2DImageFilter.hxx"
00131 #endif
00132 
00133 #endif
00134