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

itkImageToParametricSpaceFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkImageToParametricSpaceFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2008-10-16 16:45:10 $
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 __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 ImageToMeshFilter<TInputImage,TOutputMesh>  Superclass;
00054   typedef SmartPointer<Self>                          Pointer;
00055   typedef SmartPointer<const Self>                    ConstPointer;
00056 
00058   itkNewMacro(Self);
00059 
00061   itkTypeMacro(ImageToParametricSpaceFilter, ImageToMeshFilter);
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&); //purposely not implemented
00107   void operator=(const ImageToParametricSpaceFilter&); //purposely not implemented
00108 
00111   bool      m_ComputeIndices;
00112 
00113 };
00114 
00115 } // end namespace itk
00116 
00117 #ifndef ITK_MANUAL_INSTANTIATION
00118 #include "itkImageToParametricSpaceFilter.txx"
00119 #endif
00120 
00121 #endif
00122 

Generated at Tue Sep 15 03:32:48 2009 for ITK by doxygen 1.5.8 written by Dimitri van Heesch, © 1997-2000