00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkEigenAnalysis2DImageFilter.h,v $ 00005 Language: C++ 00006 Date: $Date: 2007/10/27 19:51:42 $ 00007 Version: $Revision: 1.16 $ 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 itkTypeMacro( EigenAnalysis2DImageFilter, ImageToImageFilter ); 00055 00057 itkNewMacro(Self); 00058 00060 typedef typename TEigenVectorImage::PixelType EigenVectorType; 00061 typedef typename EigenVectorType::ValueType VectorComponentType; 00062 00064 typedef typename Superclass::OutputImageRegionType OutputImageRegionType; 00065 00067 typedef TEigenValueImage EigenValueImageType; 00068 typedef typename EigenValueImageType::Pointer EigenValueImagePointer; 00069 typedef typename EigenValueImageType::RegionType EigenValueImageRegionType; 00070 typedef typename EigenValueImageType::PixelType EigenValueImagePixelType; 00071 typedef TEigenVectorImage EigenVectorImageType; 00072 typedef typename EigenVectorImageType::Pointer EigenVectorImagePointer; 00073 typedef typename EigenVectorImageType::RegionType EigenVectorImageRegionType; 00074 typedef typename EigenVectorImageType::PixelType EigenVectorImagePixelType; 00075 00077 itkStaticConstMacro(ImageDimension, unsigned int, 00078 TInputImage::ImageDimension); 00079 00082 void SetInput1( TInputImage * image1); 00083 00088 void SetInput2( TInputImage * image2); 00089 00092 void SetInput3( TInputImage * image3); 00093 00095 EigenValueImageType * GetMaxEigenValue( void ); 00096 00098 EigenValueImageType * GetMinEigenValue( void ); 00099 00102 EigenVectorImageType * GetMaxEigenVector( void ); 00103 00105 DataObject::Pointer MakeOutput(unsigned int idx); 00106 00107 #ifdef ITK_USE_CONCEPT_CHECKING 00108 00109 itkConceptMacro(VectorComponentHasNumericTraitsCheck, 00110 (Concept::HasNumericTraits<VectorComponentType>)); 00111 00113 #endif 00114 00115 protected: 00116 EigenAnalysis2DImageFilter(); 00117 virtual ~EigenAnalysis2DImageFilter() {}; 00118 00119 void GenerateData( void ); 00120 00121 private: 00122 EigenAnalysis2DImageFilter(const Self&); //purposely not implemented 00123 void operator=(const Self&); //purposely not implemented 00124 00125 }; 00126 00127 } // end namespace itk 00128 00129 #ifndef ITK_MANUAL_INSTANTIATION 00130 #include "itkEigenAnalysis2DImageFilter.txx" 00131 #endif 00132 00133 #endif 00134 00135 00136 00137 00138