go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
elxAdvancedMeanSquaresMetric.h
Go to the documentation of this file.
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 __elxAdvancedMeanSquaresMetric_H__
00016 #define __elxAdvancedMeanSquaresMetric_H__
00017 
00018 #include "elxIncludes.h"
00019 #include "itkAdvancedMeanSquaresImageToImageMetric.h"
00020 
00021 #include "elxTimer.h"
00022 
00023 namespace elastix
00024 {
00025 using namespace itk;
00026 
00044   template <class TElastix >
00045     class AdvancedMeanSquaresMetric:
00046     public
00047       AdvancedMeanSquaresImageToImageMetric<
00048         ITK_TYPENAME MetricBase<TElastix>::FixedImageType,
00049         ITK_TYPENAME MetricBase<TElastix>::MovingImageType >,
00050     public MetricBase<TElastix>
00051   {
00052   public:
00053 
00055     typedef AdvancedMeanSquaresMetric                             Self;
00056     typedef AdvancedMeanSquaresImageToImageMetric<
00057       typename MetricBase<TElastix>::FixedImageType,
00058       typename MetricBase<TElastix>::MovingImageType >    Superclass1;
00059     typedef MetricBase<TElastix>                          Superclass2;
00060     typedef SmartPointer<Self>                            Pointer;
00061     typedef SmartPointer<const Self>                      ConstPointer;
00062 
00064     itkNewMacro( Self );
00065 
00067     itkTypeMacro( AdvancedMeanSquaresMetric, AdvancedMeanSquaresImageToImageMetric );
00068 
00073     elxClassNameMacro( "AdvancedMeanSquares" );
00074 
00076     typedef typename
00077       Superclass1::CoordinateRepresentationType              CoordinateRepresentationType;
00078     typedef typename Superclass1::MovingImageType            MovingImageType;
00079     typedef typename Superclass1::MovingImagePixelType       MovingImagePixelType;
00080     typedef typename Superclass1::MovingImageConstPointer    MovingImageConstPointer;
00081     typedef typename Superclass1::FixedImageType             FixedImageType;
00082     typedef typename Superclass1::FixedImageConstPointer     FixedImageConstPointer;
00083     typedef typename Superclass1::FixedImageRegionType       FixedImageRegionType;
00084     typedef typename Superclass1::TransformType              TransformType;
00085     typedef typename Superclass1::TransformPointer           TransformPointer;
00086     typedef typename Superclass1::InputPointType             InputPointType;
00087     typedef typename Superclass1::OutputPointType            OutputPointType;
00088     typedef typename Superclass1::TransformParametersType    TransformParametersType;
00089     typedef typename Superclass1::TransformJacobianType      TransformJacobianType;
00090     typedef typename Superclass1::InterpolatorType           InterpolatorType;
00091     typedef typename Superclass1::InterpolatorPointer        InterpolatorPointer;
00092     typedef typename Superclass1::RealType                   RealType;
00093     typedef typename Superclass1::GradientPixelType          GradientPixelType;
00094     typedef typename Superclass1::GradientImageType          GradientImageType;
00095     typedef typename Superclass1::GradientImagePointer       GradientImagePointer;
00096     typedef typename Superclass1::GradientImageFilterType    GradientImageFilterType;
00097     typedef typename Superclass1::GradientImageFilterPointer GradientImageFilterPointer;
00098     typedef typename Superclass1::FixedImageMaskType         FixedImageMaskType;
00099     typedef typename Superclass1::FixedImageMaskPointer      FixedImageMaskPointer;
00100     typedef typename Superclass1::MovingImageMaskType        MovingImageMaskType;
00101     typedef typename Superclass1::MovingImageMaskPointer     MovingImageMaskPointer;
00102     typedef typename Superclass1::MeasureType                MeasureType;
00103     typedef typename Superclass1::DerivativeType             DerivativeType;
00104     typedef typename Superclass1::ParametersType             ParametersType;
00105     typedef typename Superclass1::FixedImagePixelType        FixedImagePixelType;
00106     typedef typename Superclass1::MovingImageRegionType      MovingImageRegionType;
00107     typedef typename Superclass1::ImageSamplerType           ImageSamplerType;
00108     typedef typename Superclass1::ImageSamplerPointer        ImageSamplerPointer;
00109     typedef typename Superclass1::ImageSampleContainerType   ImageSampleContainerType;
00110     typedef typename
00111       Superclass1::ImageSampleContainerPointer               ImageSampleContainerPointer;
00112     typedef typename Superclass1::FixedImageLimiterType      FixedImageLimiterType;
00113     typedef typename Superclass1::MovingImageLimiterType     MovingImageLimiterType;
00114     typedef typename
00115       Superclass1::FixedImageLimiterOutputType               FixedImageLimiterOutputType;
00116     typedef typename
00117       Superclass1::MovingImageLimiterOutputType              MovingImageLimiterOutputType;
00118     typedef typename
00119       Superclass1::MovingImageDerivativeScalesType           MovingImageDerivativeScalesType;
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 
00146     virtual void Initialize(void) throw (ExceptionObject);
00147 
00153     virtual void BeforeEachResolution(void);
00154 
00155   protected:
00156 
00158     AdvancedMeanSquaresMetric(){};
00160     virtual ~AdvancedMeanSquaresMetric() {}
00161 
00162   private:
00163 
00165     AdvancedMeanSquaresMetric( const Self& ); // purposely not implemented
00167     void operator=( const Self& );              // purposely not implemented
00168 
00169   }; // end class AdvancedMeanSquaresMetric
00170 
00171 
00172 } // end namespace elastix
00173 
00174 
00175 #ifndef ITK_MANUAL_INSTANTIATION
00176 #include "elxAdvancedMeanSquaresMetric.hxx"
00177 #endif
00178 
00179 #endif // end #ifndef __elxAdvancedMeanSquaresMetric_H__
00180 


Generated on 11-05-2012 for elastix by doxygen 1.7.6.1 elastix logo