![]() |
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 __elxRandomCoordinateSampler_h 00016 #define __elxRandomCoordinateSampler_h 00017 00018 #include "itkImageRandomCoordinateSampler.h" 00019 #include "elxIncludes.h" 00020 00021 namespace elastix 00022 { 00023 00024 using namespace itk; 00025 00076 template < class TElastix > 00077 class RandomCoordinateSampler : 00078 public 00079 ImageRandomCoordinateSampler< 00080 ITK_TYPENAME elx::ImageSamplerBase<TElastix>::InputImageType >, 00081 public 00082 elx::ImageSamplerBase<TElastix> 00083 { 00084 public: 00085 00087 typedef RandomCoordinateSampler Self; 00088 typedef ImageRandomCoordinateSampler< 00089 typename elx::ImageSamplerBase<TElastix>::InputImageType > Superclass1; 00090 typedef elx::ImageSamplerBase<TElastix> Superclass2; 00091 typedef SmartPointer<Self> Pointer; 00092 typedef SmartPointer<const Self> ConstPointer; 00093 00095 itkNewMacro(Self); 00096 00098 itkTypeMacro( RandomCoordinateSampler, ImageRandomCoordinateSampler ); 00099 00104 elxClassNameMacro( "RandomCoordinate" ); 00105 00107 typedef typename Superclass1::DataObjectPointer DataObjectPointer; 00108 typedef typename Superclass1::OutputVectorContainerType OutputVectorContainerType; 00109 typedef typename Superclass1::OutputVectorContainerPointer OutputVectorContainerPointer; 00110 typedef typename Superclass1::InputImageType InputImageType; 00111 typedef typename Superclass1::InputImagePointer InputImagePointer; 00112 typedef typename Superclass1::InputImageConstPointer InputImageConstPointer; 00113 typedef typename Superclass1::InputImageRegionType InputImageRegionType; 00114 typedef typename Superclass1::InputImagePixelType InputImagePixelType; 00115 typedef typename Superclass1::ImageSampleType ImageSampleType; 00116 typedef typename Superclass1::ImageSampleContainerType ImageSampleContainerType; 00117 typedef typename Superclass1::MaskType MaskType; 00118 typedef typename Superclass1::InputImageIndexType InputImageIndexType; 00119 typedef typename Superclass1::InputImagePointType InputImagePointType; 00120 typedef typename Superclass1::InputImageSizeType InputImageSizeType; 00121 typedef typename Superclass1::InputImageSpacingType InputImageSpacingType; 00122 typedef typename Superclass1::InputImagePointValueType InputImagePointValueType; 00123 typedef typename Superclass1::ImageSampleValueType ImageSampleValueType; 00124 00127 typedef typename Superclass1::CoordRepType CoordRepType; 00128 typedef typename Superclass1::InterpolatorType InterpolatorType; 00129 typedef typename Superclass1::DefaultInterpolatorType DefaultInterpolatorType; 00130 00132 itkStaticConstMacro( InputImageDimension, unsigned int, Superclass1::InputImageDimension ); 00133 00135 typedef typename Superclass2::ElastixType ElastixType; 00136 typedef typename Superclass2::ElastixPointer ElastixPointer; 00137 typedef typename Superclass2::ConfigurationType ConfigurationType; 00138 typedef typename Superclass2::ConfigurationPointer ConfigurationPointer; 00139 typedef typename Superclass2::RegistrationType RegistrationType; 00140 typedef typename Superclass2::RegistrationPointer RegistrationPointer; 00141 typedef typename Superclass2::ITKBaseType ITKBaseType; 00142 00148 virtual void BeforeEachResolution(void); 00149 00150 protected: 00151 00153 RandomCoordinateSampler() {} 00155 virtual ~RandomCoordinateSampler() {} 00156 00157 private: 00158 00160 RandomCoordinateSampler( const Self& ); // purposely not implemented 00162 void operator=( const Self& ); // purposely not implemented 00163 00164 }; // end class RandomCoordinateSampler 00165 00166 00167 } // end namespace elastix 00168 00169 #ifndef ITK_MANUAL_INSTANTIATION 00170 #include "elxRandomCoordinateSampler.hxx" 00171 #endif 00172 00173 #endif // end #ifndef __elxRandomCoordinateSampler_h 00174
Generated on 11-05-2012 for elastix by ![]() |
![]() |