ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
00001 /*========================================================================= 00002 * 00003 * Copyright Insight Software Consortium 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); 00006 * you may not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0.txt 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 * 00017 *=========================================================================*/ 00018 #ifndef __itkImageToParametricSpaceFilter_h 00019 #define __itkImageToParametricSpaceFilter_h 00020 00021 #include "itkImageToMeshFilter.h" 00022 00023 namespace itk 00024 { 00045 template< class TInputImage, class TOutputMesh > 00046 class ITK_EXPORT ImageToParametricSpaceFilter: 00047 public ImageToMeshFilter< TInputImage, TOutputMesh > 00048 { 00049 public: 00051 typedef ImageToParametricSpaceFilter Self; 00052 typedef ImageToMeshFilter< TInputImage, TOutputMesh > Superclass; 00053 typedef SmartPointer< Self > Pointer; 00054 typedef SmartPointer< const Self > ConstPointer; 00055 00057 itkNewMacro(Self); 00058 00060 itkTypeMacro(ImageToParametricSpaceFilter, ImageToMeshFilter); 00061 00063 typedef TInputImage InputImageType; 00064 typedef typename InputImageType::ConstPointer InputImageConstPointer; 00065 typedef typename InputImageType::RegionType InputImageRegionType; 00066 typedef typename InputImageType::PixelType InputImagePixelType; 00067 00069 typedef TOutputMesh OutputMeshType; 00070 typedef typename OutputMeshType::PointType PointType; 00071 typedef typename OutputMeshType::Pointer OutputMeshPointer; 00072 typedef typename OutputMeshType::PointsContainer PointsContainer; 00073 typedef typename OutputMeshType::PointIdentifier PointIdentifier; 00074 typedef typename PointsContainer::Pointer PointsContainerPointer; 00075 typedef typename PointsContainer::Iterator PointsContainerIterator; 00076 typedef typename OutputMeshType::PointDataContainer PointDataContainer; 00077 typedef typename PointDataContainer::Pointer PointDataContainerPointer; 00078 typedef typename PointDataContainer::Iterator PointDataContainerIterator; 00079 00081 itkStaticConstMacro(PointDimension, unsigned int, 00082 TOutputMesh::PointDimension); 00083 00085 void GenerateData(void); 00086 00088 void GenerateOutputInformation(void); 00089 00095 itkSetMacro(ComputeIndices, bool); 00096 protected: 00097 ImageToParametricSpaceFilter(); 00098 ~ImageToParametricSpaceFilter(); 00099 void PrintSelf(std::ostream & os, Indent indent) const; 00101 00102 private: 00103 //purposely not implemented 00104 ImageToParametricSpaceFilter(const ImageToParametricSpaceFilter &); 00105 void operator=(const ImageToParametricSpaceFilter &); 00106 00109 bool m_ComputeIndices; 00110 }; 00111 } // end namespace itk 00112 00113 #ifndef ITK_MANUAL_INSTANTIATION 00114 #include "itkImageToParametricSpaceFilter.hxx" 00115 #endif 00116 00117 #endif 00118