Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkCoreAtomImageToDistanceMatrixProcess.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkCoreAtomImageToDistanceMatrixProcess.h,v $ 00005 Language: C++ 00006 Date: $Date: 2003/09/10 14:29:05 $ 00007 Version: $Revision: 1.3 $ 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 __itkCoreAtomImageToDistanceMatrixProcess_h 00018 #define __itkCoreAtomImageToDistanceMatrixProcess_h 00019 00020 #include "itkBloxCoreAtomImage.h" 00021 #include "itkBloxCoreAtomPixel.h" 00022 #include "itkDataObject.h" 00023 #include "itkImage.h" 00024 #include "itkMatrixResizeableDataObject.h" 00025 #include "itkProcessObject.h" 00026 #include "vnl/vnl_matrix.h" 00027 00028 namespace itk 00029 { 00030 00037 template< typename TSourceImage > 00038 class CoreAtomImageToDistanceMatrixProcess : public ProcessObject 00039 { 00040 public: 00042 itkStaticConstMacro(NDimensions, unsigned int, TSourceImage::ImageDimension); 00043 00045 typedef CoreAtomImageToDistanceMatrixProcess Self; 00046 typedef ProcessObject Superclass; 00047 typedef SmartPointer<Self> Pointer; 00048 typedef SmartPointer<const Self> ConstPointer; 00049 00051 typedef DataObject::Pointer DataObjectPointer; 00052 00054 itkNewMacro(Self); 00055 00057 itkTypeMacro(itkCoreAtomImageToDistanceMatrixProcess, ProcessObject); 00058 00059 //Get macro for m_NumNodes 00060 itkGetMacro(NumberOfNodes, int); 00061 00063 typedef TSourceImage CoreAtomImageType; 00064 typedef typename CoreAtomImageType::Pointer CoreAtomImagePointer; 00065 typedef typename CoreAtomImageType::RegionType CoreAtomImageRegionType; 00066 typedef typename CoreAtomImageType::PixelType CoreAtomImagePixelType; 00067 typedef typename CoreAtomImageType::ConstPointer CoreAtomImageConstPointer; 00068 00070 typedef MatrixResizeableDataObject<double> DistanceMatrixType; 00071 typedef typename DistanceMatrixType::Pointer DistanceMatrixPointer; 00072 00073 //MedialNode typedef 00074 typedef BloxCoreAtomPixel<itkGetStaticConstMacro(NDimensions)> MedialNodeType; 00075 00077 typedef Point<double, itkGetStaticConstMacro(NDimensions)> PositionType; 00078 00080 DistanceMatrixType * GetOutput(void); 00081 DistanceMatrixType * GetOutput(unsigned int idx); 00082 00084 void SetInput1( const CoreAtomImageType * CoreAtomImageA ); 00085 00086 virtual void Update() {this->GenerateData();} 00087 00088 virtual DataObjectPointer MakeOutput(unsigned int idx); 00089 00090 protected: 00091 CoreAtomImageToDistanceMatrixProcess(); 00092 virtual ~CoreAtomImageToDistanceMatrixProcess(){} 00093 00094 void PrintSelf(std::ostream& os, Indent indent) const; 00095 00097 void GenerateData(); 00098 00100 TSourceImage * GetInput1(); 00101 00102 private: 00103 CoreAtomImageToDistanceMatrixProcess(const Self&); //purposely not implemented 00104 void operator=(const Self&); //purposely not implemented 00105 00106 CoreAtomImagePointer m_CoreAtomImage; 00107 DistanceMatrixPointer m_DistanceMatrix; 00108 00109 int m_NumberOfNodes; 00110 }; 00111 00112 } // end namespace itk 00113 00114 #ifndef ITK_MANUAL_INSTANTIATION 00115 #include "itkCoreAtomImageToDistanceMatrixProcess.txx" 00116 #endif 00117 00118 #endif

Generated at Sat Mar 31 02:16:18 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000