Loading...
Searching...
No Matches
elxAdvancedMeanSquaresMetric.h
Go to the documentation of this file.
/*=========================================================================
*
* Copyright UMC Utrecht and contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0.txt
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*=========================================================================*/
#ifndef elxAdvancedMeanSquaresMetric_h
#define elxAdvancedMeanSquaresMetric_h
#include "elxIncludes.h" // include first to avoid MSVS warning
#include "itkAdvancedMeanSquaresImageToImageMetric.h"
namespace elastix
{
template <class TElastix>
class ITK_TEMPLATE_EXPORT AdvancedMeanSquaresMetric
: public itk::AdvancedMeanSquaresImageToImageMetric<typename MetricBase<TElastix>::FixedImageType,
typename MetricBase<TElastix>::MovingImageType>
, public MetricBase<TElastix>
{
public:
ITK_DISALLOW_COPY_AND_MOVE(AdvancedMeanSquaresMetric);
using Self = AdvancedMeanSquaresMetric;
using Superclass1 = itk::AdvancedMeanSquaresImageToImageMetric<typename MetricBase<TElastix>::FixedImageType,
typename MetricBase<TElastix>::MovingImageType>;
using Superclass2 = MetricBase<TElastix>;
using Pointer = itk::SmartPointer<Self>;
using ConstPointer = itk::SmartPointer<const Self>;
itkNewMacro(Self);
itkTypeMacro(AdvancedMeanSquaresMetric, itk::AdvancedMeanSquaresImageToImageMetric);
elxClassNameMacro("AdvancedMeanSquares");
using typename Superclass1::CoordinateRepresentationType;
using typename Superclass1::MovingImageType;
using typename Superclass1::MovingImagePixelType;
using typename Superclass1::MovingImageConstPointer;
using typename Superclass1::FixedImageType;
using typename Superclass1::FixedImageConstPointer;
using typename Superclass1::FixedImageRegionType;
using typename Superclass1::TransformType;
using typename Superclass1::TransformPointer;
using typename Superclass1::InputPointType;
using typename Superclass1::OutputPointType;
using typename Superclass1::TransformParametersType;
using typename Superclass1::TransformJacobianType;
using typename Superclass1::InterpolatorType;
using typename Superclass1::InterpolatorPointer;
using typename Superclass1::RealType;
using typename Superclass1::GradientPixelType;
using typename Superclass1::GradientImageType;
using typename Superclass1::GradientImagePointer;
using typename Superclass1::FixedImageMaskType;
using typename Superclass1::FixedImageMaskPointer;
using typename Superclass1::MovingImageMaskType;
using typename Superclass1::MovingImageMaskPointer;
using typename Superclass1::MeasureType;
using typename Superclass1::DerivativeType;
using typename Superclass1::ParametersType;
using typename Superclass1::FixedImagePixelType;
using typename Superclass1::MovingImageRegionType;
using typename Superclass1::ImageSamplerType;
using typename Superclass1::ImageSamplerPointer;
using typename Superclass1::ImageSampleContainerType;
using typename Superclass1::ImageSampleContainerPointer;
using typename Superclass1::FixedImageLimiterType;
using typename Superclass1::MovingImageLimiterType;
using typename Superclass1::FixedImageLimiterOutputType;
using typename Superclass1::MovingImageLimiterOutputType;
using typename Superclass1::MovingImageDerivativeScalesType;
itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension);
itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension);
using typename Superclass2::ElastixType;
using typename Superclass2::RegistrationType;
using ITKBaseType = typename Superclass2::ITKBaseType;
void
Initialize() override;
void
BeforeEachResolution() override;
protected:
AdvancedMeanSquaresMetric() = default;
~AdvancedMeanSquaresMetric() override = default;
private:
elxOverrideGetSelfMacro;
};
} // end namespace elastix
#ifndef ITK_MANUAL_INSTANTIATION
# include "elxAdvancedMeanSquaresMetric.hxx"
#endif
#endif // end #ifndef elxAdvancedMeanSquaresMetric_h
elastix::AdvancedMeanSquaresMetric::Pointer
itk::SmartPointer< Self > Pointer
Definition elxAdvancedMeanSquaresMetric.h:58
elastix::AdvancedMeanSquaresMetric::elxOverrideGetSelfMacro
elxOverrideGetSelfMacro
Definition elxAdvancedMeanSquaresMetric.h:144
elastix::AdvancedMeanSquaresMetric::itkStaticConstMacro
itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension)
elastix::AdvancedMeanSquaresMetric::Superclass1
itk::AdvancedMeanSquaresImageToImageMetric< typename MetricBase< TElastix >::FixedImageType, typename MetricBase< TElastix >::MovingImageType > Superclass1
Definition elxAdvancedMeanSquaresMetric.h:55
elastix::AdvancedMeanSquaresMetric::Superclass2
MetricBase< TElastix > Superclass2
Definition elxAdvancedMeanSquaresMetric.h:57
elastix::AdvancedMeanSquaresMetric::Self
AdvancedMeanSquaresMetric Self
Definition elxAdvancedMeanSquaresMetric.h:54
elastix::AdvancedMeanSquaresMetric::itkStaticConstMacro
itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension)
elastix::AdvancedMeanSquaresMetric::ITKBaseType
typename Superclass2::ITKBaseType ITKBaseType
Definition elxAdvancedMeanSquaresMetric.h:121
elastix::AdvancedMeanSquaresMetric::elxClassNameMacro
elxClassNameMacro("AdvancedMeanSquares")
elastix::AdvancedMeanSquaresMetric::BeforeEachResolution
void BeforeEachResolution() override
elastix::AdvancedMeanSquaresMetric::AdvancedMeanSquaresMetric
AdvancedMeanSquaresMetric()=default
elastix::AdvancedMeanSquaresMetric::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(AdvancedMeanSquaresMetric)
elastix::AdvancedMeanSquaresMetric::Initialize
void Initialize() override
elastix::AdvancedMeanSquaresMetric::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition elxAdvancedMeanSquaresMetric.h:59
elastix::AdvancedMeanSquaresMetric::~AdvancedMeanSquaresMetric
~AdvancedMeanSquaresMetric() override=default
elastix::MetricBase::MetricBase
MetricBase()=default
elastix::MetricBase::ITKBaseType
itk::SingleValuedCostFunction ITKBaseType
Definition elxMetricBase.h:97
elastix::MetricBase::MovingImageType
typename ElastixType::MovingImageType MovingImageType
Definition elxMetricBase.h:92
elastix::MetricBase::RegistrationType
typename ElastixType::RegistrationBaseType RegistrationType
Definition elxBaseComponentSE.h:62
elastix::MetricBase::ElastixType
TElastix ElastixType
Definition elxBaseComponentSE.h:57
itk::AdvancedMeanSquaresImageToImageMetric
Compute Mean square difference between two images, based on AdvancedImageToImageMetric....
Definition itkAdvancedMeanSquaresImageToImageMetric.h:54
elxIncludes.h
itkAdvancedMeanSquaresImageToImageMetric.h
elastix
Definition elxDefaultConstruct.h:25

Generated on 1768596610 for elastix by 1.15.0 |