Loading...
Searching...
No Matches
elxVarianceOverLastDimensionMetric.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 elxVarianceOverLastDimensionMetric_h
#define elxVarianceOverLastDimensionMetric_h
#include "elxIncludes.h" // include first to avoid MSVS warning
#include "itkVarianceOverLastDimensionImageMetric.h"
#include "itkAdvancedBSplineDeformableTransform.h"
#include "itkStackTransform.h"
namespace elastix
{
template <class TElastix>
class ITK_TEMPLATE_EXPORT VarianceOverLastDimensionMetric
: public itk::VarianceOverLastDimensionImageMetric<typename MetricBase<TElastix>::FixedImageType,
typename MetricBase<TElastix>::MovingImageType>
, public MetricBase<TElastix>
{
public:
ITK_DISALLOW_COPY_AND_MOVE(VarianceOverLastDimensionMetric);
using Self = VarianceOverLastDimensionMetric;
using Superclass1 = itk::VarianceOverLastDimensionImageMetric<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(VarianceOverLastDimensionMetric, itk::VarianceOverLastDimensionImageMetric);
elxClassNameMacro("VarianceOverLastDimensionMetric");
using typename Superclass1::CoordinateRepresentationType;
using typename Superclass1::ScalarType;
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::FixedImageSizeType;
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;
using BSplineTransformBaseType = itk::AdvancedBSplineDeformableTransformBase<ScalarType, FixedImageDimension>;
using CombinationTransformType = itk::AdvancedCombinationTransform<ScalarType, FixedImageDimension>;
using StackTransformType = itk::StackTransform<ScalarType, FixedImageDimension, MovingImageDimension>;
using ReducedDimensionBSplineTransformBaseType =
itk::AdvancedBSplineDeformableTransformBase<ScalarType, FixedImageDimension - 1>;
void
Initialize() override;
void
BeforeRegistration() override;
void
BeforeEachResolution() override;
protected:
VarianceOverLastDimensionMetric() = default;
~VarianceOverLastDimensionMetric() override = default;
private:
elxOverrideGetSelfMacro;
};
} // end namespace elastix
#ifndef ITK_MANUAL_INSTANTIATION
# include "elxVarianceOverLastDimensionMetric.hxx"
#endif
#endif // end #ifndef elxVarianceOverLastDimensionMetric_h
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
elastix::VarianceOverLastDimensionMetric::itkStaticConstMacro
itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension)
elastix::VarianceOverLastDimensionMetric::CombinationTransformType
itk::AdvancedCombinationTransform< ScalarType, FixedImageDimension > CombinationTransformType
Definition elxVarianceOverLastDimensionMetric.h:151
elastix::VarianceOverLastDimensionMetric::StackTransformType
itk::StackTransform< ScalarType, FixedImageDimension, MovingImageDimension > StackTransformType
Definition elxVarianceOverLastDimensionMetric.h:152
elastix::VarianceOverLastDimensionMetric::elxClassNameMacro
elxClassNameMacro("VarianceOverLastDimensionMetric")
elastix::VarianceOverLastDimensionMetric::~VarianceOverLastDimensionMetric
~VarianceOverLastDimensionMetric() override=default
elastix::VarianceOverLastDimensionMetric::BeforeEachResolution
void BeforeEachResolution() override
elastix::VarianceOverLastDimensionMetric::ReducedDimensionBSplineTransformBaseType
itk::AdvancedBSplineDeformableTransformBase< ScalarType, FixedImageDimension - 1 > ReducedDimensionBSplineTransformBaseType
Definition elxVarianceOverLastDimensionMetric.h:153
elastix::VarianceOverLastDimensionMetric::itkStaticConstMacro
itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension)
elastix::VarianceOverLastDimensionMetric::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition elxVarianceOverLastDimensionMetric.h:83
elastix::VarianceOverLastDimensionMetric::Pointer
itk::SmartPointer< Self > Pointer
Definition elxVarianceOverLastDimensionMetric.h:82
elastix::VarianceOverLastDimensionMetric::elxOverrideGetSelfMacro
elxOverrideGetSelfMacro
Definition elxVarianceOverLastDimensionMetric.h:184
elastix::VarianceOverLastDimensionMetric::BeforeRegistration
void BeforeRegistration() override
elastix::VarianceOverLastDimensionMetric::Initialize
void Initialize() override
elastix::VarianceOverLastDimensionMetric::BSplineTransformBaseType
itk::AdvancedBSplineDeformableTransformBase< ScalarType, FixedImageDimension > BSplineTransformBaseType
Definition elxVarianceOverLastDimensionMetric.h:150
elastix::VarianceOverLastDimensionMetric::VarianceOverLastDimensionMetric
VarianceOverLastDimensionMetric()=default
elastix::VarianceOverLastDimensionMetric::Self
VarianceOverLastDimensionMetric Self
Definition elxVarianceOverLastDimensionMetric.h:78
elastix::VarianceOverLastDimensionMetric::Superclass2
MetricBase< TElastix > Superclass2
Definition elxVarianceOverLastDimensionMetric.h:81
elastix::VarianceOverLastDimensionMetric::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(VarianceOverLastDimensionMetric)
elastix::VarianceOverLastDimensionMetric::Superclass1
itk::VarianceOverLastDimensionImageMetric< typename MetricBase< TElastix >::FixedImageType, typename MetricBase< TElastix >::MovingImageType > Superclass1
Definition elxVarianceOverLastDimensionMetric.h:79
elastix::VarianceOverLastDimensionMetric::ITKBaseType
typename Superclass2::ITKBaseType ITKBaseType
Definition elxVarianceOverLastDimensionMetric.h:147
itk::AdvancedBSplineDeformableTransformBase
Base class for deformable transform using a B-spline representation.
Definition itkAdvancedBSplineDeformableTransformBase.h:43
itk::AdvancedCombinationTransform
This class combines two transforms: an 'initial transform' with a 'current transform'.
Definition itkAdvancedCombinationTransform.h:57
itk::AdvancedImageToImageMetric::ScalarType
typename TransformType::ScalarType ScalarType
Definition itkAdvancedImageToImageMetric.h:156
itk::StackTransform
Implements stack of transforms: one for every last dimension index.
Definition itkStackTransform.h:41
itk::VarianceOverLastDimensionImageMetric
Compute the sum of variances over the slowest varying dimension in the moving image.
Definition itkVarianceOverLastDimensionImageMetric.h:54
elxIncludes.h
itkAdvancedBSplineDeformableTransform.h
itkStackTransform.h
itkVarianceOverLastDimensionImageMetric.h
elastix
Definition elxDefaultConstruct.h:25

Generated on 1768596610 for elastix by 1.15.0 |