![]() |
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 __elxAdvancedNormalizedCorrelationMetric_H__ 00016 #define __elxAdvancedNormalizedCorrelationMetric_H__ 00017 00018 #include "elxIncludes.h" 00019 #include "itkAdvancedNormalizedCorrelationImageToImageMetric.h" 00020 00021 #include "elxTimer.h" 00022 00023 namespace elastix 00024 { 00025 using namespace itk; 00026 00043 template <class TElastix > 00044 class AdvancedNormalizedCorrelationMetric: 00045 public 00046 AdvancedNormalizedCorrelationImageToImageMetric< 00047 ITK_TYPENAME MetricBase<TElastix>::FixedImageType, 00048 ITK_TYPENAME MetricBase<TElastix>::MovingImageType >, 00049 public MetricBase<TElastix> 00050 { 00051 public: 00052 00054 typedef AdvancedNormalizedCorrelationMetric Self; 00055 typedef AdvancedNormalizedCorrelationImageToImageMetric< 00056 typename MetricBase<TElastix>::FixedImageType, 00057 typename MetricBase<TElastix>::MovingImageType > Superclass1; 00058 typedef MetricBase<TElastix> Superclass2; 00059 typedef SmartPointer<Self> Pointer; 00060 typedef SmartPointer<const Self> ConstPointer; 00061 00063 itkNewMacro( Self ); 00064 00066 itkTypeMacro( AdvancedNormalizedCorrelationMetric, AdvancedNormalizedCorrelationImageToImageMetric ); 00067 00072 elxClassNameMacro( "AdvancedNormalizedCorrelation" ); 00073 00075 typedef typename 00076 Superclass1::CoordinateRepresentationType CoordinateRepresentationType; 00077 typedef typename Superclass1::MovingImageType MovingImageType; 00078 typedef typename Superclass1::MovingImagePixelType MovingImagePixelType; 00079 typedef typename Superclass1::MovingImageConstPointer MovingImageConstPointer; 00080 typedef typename Superclass1::FixedImageType FixedImageType; 00081 typedef typename Superclass1::FixedImageConstPointer FixedImageConstPointer; 00082 typedef typename Superclass1::FixedImageRegionType FixedImageRegionType; 00083 typedef typename Superclass1::TransformType TransformType; 00084 typedef typename Superclass1::TransformPointer TransformPointer; 00085 typedef typename Superclass1::InputPointType InputPointType; 00086 typedef typename Superclass1::OutputPointType OutputPointType; 00087 typedef typename Superclass1::TransformParametersType TransformParametersType; 00088 typedef typename Superclass1::TransformJacobianType TransformJacobianType; 00089 typedef typename Superclass1::InterpolatorType InterpolatorType; 00090 typedef typename Superclass1::InterpolatorPointer InterpolatorPointer; 00091 typedef typename Superclass1::RealType RealType; 00092 typedef typename Superclass1::GradientPixelType GradientPixelType; 00093 typedef typename Superclass1::GradientImageType GradientImageType; 00094 typedef typename Superclass1::GradientImagePointer GradientImagePointer; 00095 typedef typename Superclass1::GradientImageFilterType GradientImageFilterType; 00096 typedef typename Superclass1::GradientImageFilterPointer GradientImageFilterPointer; 00097 typedef typename Superclass1::FixedImageMaskType FixedImageMaskType; 00098 typedef typename Superclass1::FixedImageMaskPointer FixedImageMaskPointer; 00099 typedef typename Superclass1::MovingImageMaskType MovingImageMaskType; 00100 typedef typename Superclass1::MovingImageMaskPointer MovingImageMaskPointer; 00101 typedef typename Superclass1::MeasureType MeasureType; 00102 typedef typename Superclass1::DerivativeType DerivativeType; 00103 typedef typename Superclass1::ParametersType ParametersType; 00104 typedef typename Superclass1::FixedImagePixelType FixedImagePixelType; 00105 typedef typename Superclass1::MovingImageRegionType MovingImageRegionType; 00106 typedef typename Superclass1::ImageSamplerType ImageSamplerType; 00107 typedef typename Superclass1::ImageSamplerPointer ImageSamplerPointer; 00108 typedef typename Superclass1::ImageSampleContainerType ImageSampleContainerType; 00109 typedef typename 00110 Superclass1::ImageSampleContainerPointer ImageSampleContainerPointer; 00111 typedef typename Superclass1::FixedImageLimiterType FixedImageLimiterType; 00112 typedef typename Superclass1::MovingImageLimiterType MovingImageLimiterType; 00113 typedef typename 00114 Superclass1::FixedImageLimiterOutputType FixedImageLimiterOutputType; 00115 typedef typename 00116 Superclass1::MovingImageLimiterOutputType MovingImageLimiterOutputType; 00117 typedef typename 00118 Superclass1::MovingImageDerivativeScalesType MovingImageDerivativeScalesType; 00119 00120 00122 itkStaticConstMacro( FixedImageDimension, unsigned int, 00123 FixedImageType::ImageDimension ); 00124 00126 itkStaticConstMacro( MovingImageDimension, unsigned int, 00127 MovingImageType::ImageDimension ); 00128 00130 typedef typename Superclass2::ElastixType ElastixType; 00131 typedef typename Superclass2::ElastixPointer ElastixPointer; 00132 typedef typename Superclass2::ConfigurationType ConfigurationType; 00133 typedef typename Superclass2::ConfigurationPointer ConfigurationPointer; 00134 typedef typename Superclass2::RegistrationType RegistrationType; 00135 typedef typename Superclass2::RegistrationPointer RegistrationPointer; 00136 typedef typename Superclass2::ITKBaseType ITKBaseType; 00137 00139 typedef tmr::Timer TimerType; 00141 typedef TimerType::Pointer TimerPointer; 00142 00147 virtual void BeforeEachResolution(void); 00148 00152 virtual void Initialize(void) throw (ExceptionObject); 00153 00154 protected: 00155 00157 AdvancedNormalizedCorrelationMetric() {}; 00159 virtual ~AdvancedNormalizedCorrelationMetric() {} 00160 00161 private: 00162 00164 AdvancedNormalizedCorrelationMetric( const Self& ); // purposely not implemented 00166 void operator=( const Self& ); // purposely not implemented 00167 00168 }; // end class AdvancedNormalizedCorrelationMetric 00169 00170 00171 } // end namespace elastix 00172 00173 00174 #ifndef ITK_MANUAL_INSTANTIATION 00175 #include "elxAdvancedNormalizedCorrelationMetric.hxx" 00176 #endif 00177 00178 #endif // end #ifndef __elxAdvancedNormalizedCorrelationMetric_H__
Generated on 24-10-2011 for elastix by ![]() |
![]() |