00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkEigenAnalysis2DImageFilter.h,v $ 00005 Language: C++ 00006 Date: $Date: 2005/05/03 23:14:44 $ 00007 Version: $Revision: 1.14 $ 00008 00009 Copyright (c) Insight Software Consortium. All rights reserved. 00010 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 #ifndef __itkEigenAnalysis2DImageFilter_h 00018 #define __itkEigenAnalysis2DImageFilter_h 00019 00020 #include "itkImageToImageFilter.h" 00021 00022 00023 namespace itk { 00024 00042 template <class TInputImage, class TEigenValueImage, class TEigenVectorImage > 00043 class ITK_EXPORT EigenAnalysis2DImageFilter: 00044 public ImageToImageFilter<TInputImage,TEigenValueImage> 00045 { 00046 public: 00048 typedef EigenAnalysis2DImageFilter Self; 00049 typedef ImageToImageFilter<TInputImage,TEigenValueImage> Superclass; 00050 typedef SmartPointer<Self> Pointer; 00051 typedef SmartPointer<const Self> ConstPointer; 00052 00054 itkNewMacro(Self); 00055 00057 typedef typename TEigenVectorImage::PixelType EigenVectorType; 00058 typedef typename EigenVectorType::ValueType VectorComponentType; 00059 00061 typedef typename Superclass::OutputImageRegionType OutputImageRegionType; 00062 00064 typedef TEigenValueImage EigenValueImageType; 00065 typedef typename EigenValueImageType::Pointer EigenValueImagePointer; 00066 typedef typename EigenValueImageType::RegionType EigenValueImageRegionType; 00067 typedef typename EigenValueImageType::PixelType EigenValueImagePixelType; 00068 typedef TEigenVectorImage EigenVectorImageType; 00069 typedef typename EigenVectorImageType::Pointer EigenVectorImagePointer; 00070 typedef typename EigenVectorImageType::RegionType EigenVectorImageRegionType; 00071 typedef typename EigenVectorImageType::PixelType EigenVectorImagePixelType; 00072 00074 itkStaticConstMacro(ImageDimension, unsigned int, 00075 TInputImage::ImageDimension); 00076 00079 void SetInput1( TInputImage * image1); 00080 00085 void SetInput2( TInputImage * image2); 00086 00089 void SetInput3( TInputImage * image3); 00090 00092 EigenValueImageType * GetMaxEigenValue( void ); 00093 00095 EigenValueImageType * GetMinEigenValue( void ); 00096 00099 EigenVectorImageType * GetMaxEigenVector( void ); 00100 00102 DataObject::Pointer MakeOutput(unsigned int idx); 00103 00104 protected: 00105 EigenAnalysis2DImageFilter(); 00106 virtual ~EigenAnalysis2DImageFilter() {}; 00107 00108 void GenerateData( void ); 00109 00110 private: 00111 EigenAnalysis2DImageFilter(const Self&); //purposely not implemented 00112 void operator=(const Self&); //purposely not implemented 00113 00114 }; 00115 00116 } // end namespace itk 00117 00118 #ifndef ITK_MANUAL_INSTANTIATION 00119 #include "itkEigenAnalysis2DImageFilter.txx" 00120 #endif 00121 00122 #endif 00123 00124 00125 00126