00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkImageToParametricSpaceFilter_h
00018 #define __itkImageToParametricSpaceFilter_h
00019
00020 #include "itkImageToMeshFilter.h"
00021 #include "itkImageRegionIteratorWithIndex.h"
00022 #include "itkImageRegionConstIteratorWithIndex.h"
00023
00024 namespace itk
00025 {
00026
00046 template <class TInputImage, class TOutputMesh>
00047 class ITK_EXPORT ImageToParametricSpaceFilter :
00048 public ImageToMeshFilter<TInputImage,TOutputMesh>
00049 {
00050 public:
00052 typedef ImageToParametricSpaceFilter Self;
00053 typedef ProcessObject Superclass;
00054 typedef SmartPointer<Self> Pointer;
00055 typedef SmartPointer<const Self> ConstPointer;
00056
00058 itkNewMacro(Self);
00059
00061 itkTypeMacro(ImageToParametricSpaceFilter, ProcessObject);
00062
00064 typedef TInputImage InputImageType;
00065 typedef typename InputImageType::ConstPointer InputImageConstPointer;
00066 typedef typename InputImageType::RegionType InputImageRegionType;
00067 typedef typename InputImageType::PixelType InputImagePixelType;
00068 typedef ImageRegionConstIteratorWithIndex<InputImageType>
00069 InputImageIterator;
00070
00072 typedef TOutputMesh OutputMeshType;
00073 typedef typename OutputMeshType::PointType PointType;
00074 typedef typename OutputMeshType::Pointer OutputMeshPointer;
00075 typedef typename OutputMeshType::PointsContainer PointsContainer;
00076 typedef typename OutputMeshType::PointIdentifier PointIdentifier;
00077 typedef typename PointsContainer::Pointer PointsContainerPointer;
00078 typedef typename PointsContainer::Iterator PointsContainerIterator;
00079 typedef typename OutputMeshType::PointDataContainer PointDataContainer;
00080 typedef typename PointDataContainer::Pointer PointDataContainerPointer;
00081 typedef typename PointDataContainer::Iterator PointDataContainerIterator;
00082
00084 itkStaticConstMacro(PointDimension, unsigned int,
00085 TOutputMesh::PointDimension);
00086
00088 void GenerateData(void);
00089
00091 void GenerateOutputInformation(void);
00092
00098 itkSetMacro( ComputeIndices, bool );
00099
00100 protected:
00101 ImageToParametricSpaceFilter();
00102 ~ImageToParametricSpaceFilter();
00103 void PrintSelf(std::ostream& os, Indent indent) const;
00104
00105 private:
00106 ImageToParametricSpaceFilter(const ImageToParametricSpaceFilter&);
00107 void operator=(const ImageToParametricSpaceFilter&);
00108
00111 bool m_ComputeIndices;
00112
00113 };
00114
00115 }
00116
00117 #ifndef ITK_MANUAL_INSTANTIATION
00118 #include "itkImageToParametricSpaceFilter.txx"
00119 #endif
00120
00121 #endif