![]() |
Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages |
00001 /*====================================================================== 00002 00003 This file is part of the elastix software. 00004 00005 Copyright (c) University Medical Center Utrecht. All rights reserved. 00006 See src/CopyrightElastix.txt or http://elastix.isi.uu.nl/legal.php for 00007 details. 00008 00009 This software is distributed WITHOUT ANY WARRANTY; without even 00010 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00011 PURPOSE. See the above copyright notices for more information. 00012 00013 ======================================================================*/ 00014 00015 #ifndef __elxGridSampler_h 00016 #define __elxGridSampler_h 00017 00018 #include "itkImageGridSampler.h" 00019 #include "elxIncludes.h" 00020 00021 namespace elastix 00022 { 00023 00024 using namespace itk; 00025 00047 template < class TElastix > 00048 class GridSampler : 00049 public 00050 ImageGridSampler< 00051 ITK_TYPENAME elx::ImageSamplerBase<TElastix>::InputImageType >, 00052 public 00053 elx::ImageSamplerBase<TElastix> 00054 { 00055 public: 00056 00058 typedef GridSampler Self; 00059 typedef ImageGridSampler< 00060 typename elx::ImageSamplerBase<TElastix>::InputImageType > Superclass1; 00061 typedef elx::ImageSamplerBase<TElastix> Superclass2; 00062 typedef SmartPointer<Self> Pointer; 00063 typedef SmartPointer<const Self> ConstPointer; 00064 00066 itkNewMacro(Self); 00067 00069 itkTypeMacro( GridSampler, ImageGridSampler ); 00070 00075 elxClassNameMacro( "Grid" ); 00076 00078 typedef typename Superclass1::DataObjectPointer DataObjectPointer; 00079 typedef typename Superclass1::OutputVectorContainerType OutputVectorContainerType; 00080 typedef typename Superclass1::OutputVectorContainerPointer OutputVectorContainerPointer; 00081 typedef typename Superclass1::InputImageType InputImageType; 00082 typedef typename Superclass1::InputImagePointer InputImagePointer; 00083 typedef typename Superclass1::InputImageConstPointer InputImageConstPointer; 00084 typedef typename Superclass1::InputImageRegionType InputImageRegionType; 00085 typedef typename Superclass1::InputImagePixelType InputImagePixelType; 00086 typedef typename Superclass1::ImageSampleType ImageSampleType; 00087 typedef typename Superclass1::ImageSampleContainerType ImageSampleContainerType; 00088 typedef typename Superclass1::MaskType MaskType; 00089 typedef typename Superclass1::InputImageIndexType InputImageIndexType; 00090 typedef typename Superclass1::InputImagePointType InputImagePointType; 00091 typedef typename Superclass1::SampleGridSpacingType GridSpacingType; 00092 typedef typename Superclass1::SampleGridSpacingValueType SampleGridSpacingValueType; 00093 00095 itkStaticConstMacro( InputImageDimension, unsigned int, Superclass1::InputImageDimension ); 00096 00098 typedef typename Superclass2::ElastixType ElastixType; 00099 typedef typename Superclass2::ElastixPointer ElastixPointer; 00100 typedef typename Superclass2::ConfigurationType ConfigurationType; 00101 typedef typename Superclass2::ConfigurationPointer ConfigurationPointer; 00102 typedef typename Superclass2::RegistrationType RegistrationType; 00103 typedef typename Superclass2::RegistrationPointer RegistrationPointer; 00104 typedef typename Superclass2::ITKBaseType ITKBaseType; 00105 00109 virtual void BeforeEachResolution(void); 00110 00111 protected: 00112 00114 GridSampler() {} 00116 virtual ~GridSampler() {} 00117 00118 private: 00119 00121 GridSampler( const Self& ); // purposely not implemented 00123 void operator=( const Self& ); // purposely not implemented 00124 00125 }; // end class GridSampler 00126 00127 00128 } // end namespace elastix 00129 00130 #ifndef ITK_MANUAL_INSTANTIATION 00131 #include "elxGridSampler.hxx" 00132 #endif 00133 00134 #endif // end #ifndef __elxGridSampler_h 00135
Generated on 24-10-2011 for elastix by ![]() |
![]() |