diff --git a/Modules/RigidRegistration/mitkImageRegistrationMethod.h b/Modules/RigidRegistration/mitkImageRegistrationMethod.h index e40ed02a21..f419598d4e 100644 --- a/Modules/RigidRegistration/mitkImageRegistrationMethod.h +++ b/Modules/RigidRegistration/mitkImageRegistrationMethod.h @@ -1,100 +1,100 @@ /*========================================================================= Program: Medical Imaging & Interaction Toolkit Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. See MITKCopyright.txt or http://www.mitk.org/copyright.html for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notices for more information. =========================================================================*/ #ifndef MITKIMAGEREGISTRATIONMETHOD_H #define MITKIMAGEREGISTRATIONMETHOD_H #include "itkImageRegistrationMethod.h" #include "MitkRigidRegistrationExports.h" #include "itkSingleValuedNonLinearOptimizer.h" #include "mitkImageToImageFilter.h" #include "mitkImageAccessByItk.h" #include "mitkRigidRegistrationObserver.h" #include "mitkCommon.h" #include "itkImageMaskSpatialObject.h" #include "mitkRigidRegistrationPreset.h" namespace mitk { /*! \brief Main class for the rigid registration pipeline. \ingroup RigidRegistration \author Daniel Stein */ class MITK_RIGIDREGISTRATION_EXPORT ImageRegistrationMethod : public ImageToImageFilter { public: typedef itk::SingleValuedNonLinearOptimizer OptimizerType; typedef itk::ImageMaskSpatialObject< 3 > MaskType; mitkClassMacro(ImageRegistrationMethod, ImageToImageFilter); itkNewMacro(Self); static const int LINEARINTERPOLATOR = 0; static const int NEARESTNEIGHBORINTERPOLATOR = 1; void SetObserver(RigidRegistrationObserver::Pointer observer); void SetInterpolator(int interpolator); virtual void GenerateData(); virtual void SetReferenceImage( Image::Pointer fixedImage); virtual void SetFixedMask( Image::Pointer fixedMask); virtual void SetMovingMask( Image::Pointer movingMask); void SetOptimizerScales(itk::Array scales); void SetTransform(itk::Object::Pointer transform); void SetMetric(itk::Object::Pointer metric); void SetOptimizer(itk::Object::Pointer optimizer); protected: ImageRegistrationMethod(); virtual ~ImageRegistrationMethod(); - friend class ImageRegistrationMethodAccessFunctor; + friend struct ImageRegistrationMethodAccessFunctor; RigidRegistrationObserver::Pointer m_Observer; int m_Interpolator; Image::Pointer m_ReferenceImage; Image::Pointer m_FixedMask; Image::Pointer m_MovingMask; virtual void GenerateOutputInformation(){}; private: itk::Object::Pointer m_Transform; itk::Object::Pointer m_Metric; itk::Object::Pointer m_Optimizer; itk::Array m_OptimizerScales; }; } #endif // MITKIMAGEREGISTRATIONMETHOD_H diff --git a/Modules/RigidRegistration/mitkPyramidalRegistrationMethod.h b/Modules/RigidRegistration/mitkPyramidalRegistrationMethod.h index 1f0b522538..d2e8911e24 100644 --- a/Modules/RigidRegistration/mitkPyramidalRegistrationMethod.h +++ b/Modules/RigidRegistration/mitkPyramidalRegistrationMethod.h @@ -1,166 +1,166 @@ /*========================================================================= Program: Medical Imaging & Interaction Toolkit Language: C++ Date: $Date: 2009-05-28 17:19:30 +0200 (Thu, 28 May 2009) $ Version: $Revision: 17495 $ Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. See MITKCopyright.txt or http://www.mitk.org/copyright.html for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notices for more information. =========================================================================*/ #ifndef MITKPYRAMIDALREGISTRATIONMETHOD_H #define MITKPYRAMIDALREGISTRATIONMETHOD_H #include "itkImageRegistrationMethod.h" #include "MitkRigidRegistrationExports.h" #include "itkSingleValuedNonLinearOptimizer.h" #include "mitkImageToImageFilter.h" #include "mitkImageAccessByItk.h" #include "mitkRigidRegistrationObserver.h" #include "mitkCommon.h" #include "mitkOptimizerParameters.h" #include "mitkTransformParameters.h" #include "mitkMetricParameters.h" #include "itkImageMaskSpatialObject.h" #include "mitkRigidRegistrationPreset.h" namespace mitk { /*! \brief Main class for the rigid registration pipeline. \ingroup RigidRegistration \author Thomas van Bruggen */ class MITK_RIGIDREGISTRATION_EXPORT PyramidalRegistrationMethod : public ImageToImageFilter { public: typedef itk::SingleValuedNonLinearOptimizer OptimizerType; typedef itk::ImageMaskSpatialObject< 3 > MaskType; mitkClassMacro(PyramidalRegistrationMethod, ImageToImageFilter); itkNewMacro(Self); static const int LINEARINTERPOLATOR = 0; static const int NEARESTNEIGHBORINTERPOLATOR = 1; void SetObserver(RigidRegistrationObserver::Pointer observer); void SetInterpolator(int interpolator); virtual void GenerateData(); virtual void SetReferenceImage( Image::Pointer fixedImage); virtual void SetFixedMask( Image::Pointer fixedMask); virtual void SetMovingMask( Image::Pointer movingMask); void SetOptimizerParameters(OptimizerParameters::Pointer optimizerParameters) { m_OptimizerParameters = optimizerParameters; } OptimizerParameters::Pointer GetOptimizerParameters() { return m_OptimizerParameters; } void SetTransformParameters(TransformParameters::Pointer transformParameters) { m_TransformParameters = transformParameters; } TransformParameters::Pointer GetTransformParameters() { return m_TransformParameters; } void SetMetricParameters(MetricParameters::Pointer metricParameters) { m_MetricParameters = metricParameters; } MetricParameters::Pointer GetMetricParameters() { return m_MetricParameters; } void SetPresets(std::vector presets) { m_Presets = presets; } itkSetMacro(FixedSchedule, itk::Array2D); itkSetMacro(MovingSchedule, itk::Array2D); itkSetMacro(MatchHistograms, bool); itkGetMacro(Preset, mitk::RigidRegistrationPreset*); itkSetMacro(BlurFixedImage, bool); itkSetMacro(BlurMovingImage, bool); protected: PyramidalRegistrationMethod(); virtual ~PyramidalRegistrationMethod(); - friend class PyramidalRegistrationMethodAccessFunctor; + friend struct PyramidalRegistrationMethodAccessFunctor; RigidRegistrationObserver::Pointer m_Observer; int m_Interpolator; Image::Pointer m_ReferenceImage; Image::Pointer m_FixedMask; Image::Pointer m_MovingMask; void GenerateOutputInformation(){}; private: OptimizerParameters::Pointer m_OptimizerParameters; TransformParameters::Pointer m_TransformParameters; MetricParameters::Pointer m_MetricParameters; std::vector m_Presets; mitk::RigidRegistrationPreset* m_Preset; // Schedules itk::Array2D m_FixedSchedule; itk::Array2D m_MovingSchedule; bool m_UseMask; bool m_MatchHistograms; bool m_BlurFixedImage; bool m_BlurMovingImage; MaskType::Pointer m_BrainMask; mitk::TransformParameters::Pointer ParseTransformParameters(itk::Array transformValues); mitk::MetricParameters::Pointer ParseMetricParameters(itk::Array metricValues); mitk::OptimizerParameters::Pointer ParseOptimizerParameters(itk::Array optimizerValues); }; } #endif // MITKIMAGEREGISTRATIONMETHOD_H