Loading...
Searching...
No Matches
itkSumSquaredTissueVolumeDifferenceImageToImageMetric.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 itkSumSquaredTissueVolumeDifferenceImageToImageMetric_h
#define itkSumSquaredTissueVolumeDifferenceImageToImageMetric_h
#include "itkAdvancedImageToImageMetric.h"
namespace itk
{
template <class TFixedImage, class TMovingImage>
class ITK_TEMPLATE_EXPORT SumSquaredTissueVolumeDifferenceImageToImageMetric
: public AdvancedImageToImageMetric<TFixedImage, TMovingImage>
{
public:
ITK_DISALLOW_COPY_AND_MOVE(SumSquaredTissueVolumeDifferenceImageToImageMetric);
using Self = SumSquaredTissueVolumeDifferenceImageToImageMetric;
using Superclass = AdvancedImageToImageMetric<TFixedImage, TMovingImage>;
using Pointer = SmartPointer<Self>;
using ConstPointer = SmartPointer<const Self>;
itkNewMacro(Self);
itkTypeMacro(SumSquaredTissueVolumeDifferenceImageToImageMetric, AdvancedImageToImageMetric);
using typename Superclass::CoordinateRepresentationType;
using typename Superclass::MovingImageType;
using typename Superclass::MovingImagePixelType;
using typename Superclass::MovingImageConstPointer;
using typename Superclass::FixedImageType;
using typename Superclass::FixedImageConstPointer;
using typename Superclass::FixedImageRegionType;
using typename Superclass::InputPointType;
using typename Superclass::OutputPointType;
using typename Superclass::TransformParametersType;
using typename Superclass::TransformJacobianType;
using typename Superclass::InterpolatorType;
using typename Superclass::InterpolatorPointer;
using typename Superclass::RealType;
using typename Superclass::GradientPixelType;
using typename Superclass::GradientImageType;
using typename Superclass::GradientImagePointer;
using typename Superclass::FixedImageMaskType;
using typename Superclass::FixedImageMaskPointer;
using typename Superclass::MovingImageMaskType;
using typename Superclass::MovingImageMaskPointer;
using typename Superclass::MeasureType;
using typename Superclass::DerivativeType;
using typename Superclass::DerivativeValueType;
using typename Superclass::ParametersType;
using typename Superclass::FixedImagePixelType;
using typename Superclass::MovingImageRegionType;
using typename Superclass::ImageSamplerType;
using typename Superclass::ImageSamplerPointer;
using typename Superclass::ImageSampleContainerType;
using typename Superclass::ImageSampleContainerPointer;
using typename Superclass::FixedImageLimiterType;
using typename Superclass::MovingImageLimiterType;
using typename Superclass::FixedImageLimiterOutputType;
using typename Superclass::MovingImageLimiterOutputType;
using typename Superclass::MovingImageDerivativeScalesType;
using TransformType = typename Superclass::AdvancedTransformType;
using SpatialJacobianType = typename TransformType::SpatialJacobianType;
using JacobianOfSpatialJacobianType = typename TransformType::JacobianOfSpatialJacobianType;
using SpatialHessianType = typename TransformType::SpatialHessianType;
using JacobianOfSpatialHessianType = typename TransformType::JacobianOfSpatialHessianType;
using InternalMatrixType = typename TransformType::InternalMatrixType;
itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension);
itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension);
virtual MeasureType
GetValueSingleThreaded(const TransformParametersType & parameters) const;
MeasureType
GetValue(const TransformParametersType & parameters) const override;
void
GetDerivative(const TransformParametersType & parameters, DerivativeType & derivative) const override;
void
GetValueAndDerivative(const TransformParametersType & parameters,
MeasureType & Value,
DerivativeType & Derivative) const override;
void
GetValueAndDerivativeSingleThreaded(const TransformParametersType & parameters,
MeasureType & measure,
DerivativeType & derivative) const;
itkSetMacro(AirValue, RealType);
itkGetConstMacro(AirValue, RealType);
itkSetMacro(TissueValue, RealType);
itkGetConstMacro(TissueValue, RealType);
protected:
SumSquaredTissueVolumeDifferenceImageToImageMetric();
~SumSquaredTissueVolumeDifferenceImageToImageMetric() override = default;
void
PrintSelf(std::ostream & os, Indent indent) const override;
using typename Superclass::FixedImageIndexType;
using typename Superclass::FixedImageIndexValueType;
using typename Superclass::MovingImageIndexType;
using typename Superclass::FixedImagePointType;
using typename Superclass::MovingImagePointType;
using typename Superclass::MovingImageContinuousIndexType;
using typename Superclass::BSplineInterpolatorType;
using typename Superclass::MovingImageDerivativeType;
using typename Superclass::NonZeroJacobianIndicesType;
void
EvaluateTransformJacobianInnerProduct(const TransformJacobianType & jacobian,
const MovingImageDerivativeType & movingImageDerivative,
DerivativeType & imageJacobian) const override;
void
UpdateValueAndDerivativeTerms(const RealType fixedImageValue,
const RealType movingImageValue,
const DerivativeType & imageJacobian,
const NonZeroJacobianIndicesType & nzji,
const RealType spatialJacobianDeterminant,
const DerivativeType & jacobianOfSpatialJacobianDeterminant,
MeasureType & measure,
DerivativeType & deriv) const;
void
EvaluateJacobianOfSpatialJacobianDeterminantInnerProduct(
const JacobianOfSpatialJacobianType & jacobianOfSpatialJacobian,
const SpatialJacobianType & inverseSpatialJacobian,
DerivativeType & jacobianOfSpatialJacobianDeterminant) const;
void
ThreadedGetValue(ThreadIdType threadID) const override;
void
AfterThreadedGetValue(MeasureType & value) const override;
void
ThreadedGetValueAndDerivative(ThreadIdType threadId) const override;
void
AfterThreadedGetValueAndDerivative(MeasureType & measure, DerivativeType & derivative) const override;
private:
RealType m_AirValue{ -1000.0 };
RealType m_TissueValue{ 55.0 };
}; // end class SumSquaredTissueVolumeDifferenceImageToImageMetric
} // end namespace itk
#ifndef ITK_MANUAL_INSTANTIATION
# include "itkSumSquaredTissueVolumeDifferenceImageToImageMetric.hxx"
#endif
#endif // end #ifndef itkSumSquaredTissueVolumeDifferenceImageToImageMetric_h
itk::AdvancedImageToImageMetric::MovingImagePointType
typename TransformType::OutputPointType MovingImagePointType
Definition itkAdvancedImageToImageMetric.h:338
itk::AdvancedImageToImageMetric::ImageSampleContainerPointer
typename ImageSamplerType::OutputVectorContainerPointer ImageSampleContainerPointer
Definition itkAdvancedImageToImageMetric.h:145
itk::AdvancedImageToImageMetric::MovingImageRegionType
typename MovingImageType::RegionType MovingImageRegionType
Definition itkAdvancedImageToImageMetric.h:138
itk::AdvancedImageToImageMetric::NonZeroJacobianIndicesType
typename AdvancedTransformType::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
Definition itkAdvancedImageToImageMetric.h:356
itk::AdvancedImageToImageMetric::MovingImageDerivativeScalesType
FixedArray< double, Self::MovingImageDimension > MovingImageDerivativeScalesType
Definition itkAdvancedImageToImageMetric.h:139
itk::AdvancedImageToImageMetric::FixedImagePixelType
typename FixedImageType::PixelType FixedImagePixelType
Definition itkAdvancedImageToImageMetric.h:137
itk::AdvancedImageToImageMetric::DerivativeValueType
typename DerivativeType::ValueType DerivativeValueType
Definition itkAdvancedImageToImageMetric.h:133
itk::AdvancedImageToImageMetric::FixedImageIndexValueType
typename FixedImageIndexType::IndexValueType FixedImageIndexValueType
Definition itkAdvancedImageToImageMetric.h:335
itk::AdvancedImageToImageMetric::MovingImageIndexType
typename MovingImageType::IndexType MovingImageIndexType
Definition itkAdvancedImageToImageMetric.h:336
itk::AdvancedImageToImageMetric::ImageSampleContainerType
typename ImageSamplerType::OutputVectorContainerType ImageSampleContainerType
Definition itkAdvancedImageToImageMetric.h:144
itk::AdvancedImageToImageMetric::FixedImageMaskType
ImageMaskSpatialObject< Self::FixedImageDimension > FixedImageMaskType
Definition itkAdvancedImageToImageMetric.h:124
itk::AdvancedImageToImageMetric::AdvancedTransformType
AdvancedTransform< ScalarType, FixedImageDimension, MovingImageDimension > AdvancedTransformType
Definition itkAdvancedImageToImageMetric.h:157
itk::AdvancedImageToImageMetric::FixedImageIndexType
typename FixedImageType::IndexType FixedImageIndexType
Definition itkAdvancedImageToImageMetric.h:334
itk::AdvancedImageToImageMetric::MovingImageMaskPointer
SmartPointer< MovingImageMaskType > MovingImageMaskPointer
Definition itkAdvancedImageToImageMetric.h:128
itk::AdvancedImageToImageMetric::FixedImageLimiterType
LimiterFunctionBase< RealType, FixedImageDimension > FixedImageLimiterType
Definition itkAdvancedImageToImageMetric.h:148
itk::AdvancedImageToImageMetric::AdvancedImageToImageMetric
AdvancedImageToImageMetric()
itk::AdvancedImageToImageMetric::ImageSamplerType
ImageSamplerBase< FixedImageType > ImageSamplerType
Definition itkAdvancedImageToImageMetric.h:142
itk::AdvancedImageToImageMetric::MovingImageDerivativeType
typename BSplineInterpolatorType::CovariantVectorType MovingImageDerivativeType
Definition itkAdvancedImageToImageMetric.h:353
itk::AdvancedImageToImageMetric::MovingImageLimiterType
LimiterFunctionBase< RealType, MovingImageDimension > MovingImageLimiterType
Definition itkAdvancedImageToImageMetric.h:151
itk::AdvancedImageToImageMetric::MovingImageLimiterOutputType
typename MovingImageLimiterType::OutputType MovingImageLimiterOutputType
Definition itkAdvancedImageToImageMetric.h:153
itk::AdvancedImageToImageMetric::FixedImagePointType
typename TransformType::InputPointType FixedImagePointType
Definition itkAdvancedImageToImageMetric.h:337
itk::AdvancedImageToImageMetric::FixedImageLimiterOutputType
typename FixedImageLimiterType::OutputType FixedImageLimiterOutputType
Definition itkAdvancedImageToImageMetric.h:150
itk::AdvancedImageToImageMetric::FixedImageMaskPointer
SmartPointer< FixedImageMaskType > FixedImageMaskPointer
Definition itkAdvancedImageToImageMetric.h:125
itk::AdvancedImageToImageMetric::BSplineInterpolatorType
BSplineInterpolateImageFunction< MovingImageType, CoordinateRepresentationType, double > BSplineInterpolatorType
Definition itkAdvancedImageToImageMetric.h:342
itk::AdvancedImageToImageMetric::ImageSamplerPointer
typename ImageSamplerType::Pointer ImageSamplerPointer
Definition itkAdvancedImageToImageMetric.h:143
itk::AdvancedImageToImageMetric::MovingImageContinuousIndexType
typename InterpolatorType::ContinuousIndexType MovingImageContinuousIndexType
Definition itkAdvancedImageToImageMetric.h:339
itk::AdvancedImageToImageMetric::MovingImageMaskType
ImageMaskSpatialObject< Self::MovingImageDimension > MovingImageMaskType
Definition itkAdvancedImageToImageMetric.h:127
itk::SumSquaredTissueVolumeDifferenceImageToImageMetric::GetValue
MeasureType GetValue(const TransformParametersType &parameters) const override
itk::SumSquaredTissueVolumeDifferenceImageToImageMetric::GetValueSingleThreaded
virtual MeasureType GetValueSingleThreaded(const TransformParametersType &parameters) const
itk::SumSquaredTissueVolumeDifferenceImageToImageMetric< typename MetricBase< TElastix >::FixedImageType, typename MetricBase< TElastix >::MovingImageType >::NonZeroJacobianIndicesType
typename AdvancedTransformType::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
itk::SumSquaredTissueVolumeDifferenceImageToImageMetric< typename MetricBase< TElastix >::FixedImageType, typename MetricBase< TElastix >::MovingImageType >::SpatialJacobianType
typename TransformType::SpatialJacobianType SpatialJacobianType
Definition itkSumSquaredTissueVolumeDifferenceImageToImageMetric.h:119
itk::SumSquaredTissueVolumeDifferenceImageToImageMetric::itkStaticConstMacro
itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension)
itk::SumSquaredTissueVolumeDifferenceImageToImageMetric::EvaluateJacobianOfSpatialJacobianDeterminantInnerProduct
void EvaluateJacobianOfSpatialJacobianDeterminantInnerProduct(const JacobianOfSpatialJacobianType &jacobianOfSpatialJacobian, const SpatialJacobianType &inverseSpatialJacobian, DerivativeType &jacobianOfSpatialJacobianDeterminant) const
itk::SumSquaredTissueVolumeDifferenceImageToImageMetric< typename MetricBase< TElastix >::FixedImageType, typename MetricBase< TElastix >::MovingImageType >::Superclass
AdvancedImageToImageMetric< typename MetricBase< TElastix >::FixedImageType, typename MetricBase< TElastix >::MovingImageType > Superclass
Definition itkSumSquaredTissueVolumeDifferenceImageToImageMetric.h:69
itk::SumSquaredTissueVolumeDifferenceImageToImageMetric::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(SumSquaredTissueVolumeDifferenceImageToImageMetric)
itk::SumSquaredTissueVolumeDifferenceImageToImageMetric::UpdateValueAndDerivativeTerms
void UpdateValueAndDerivativeTerms(const RealType fixedImageValue, const RealType movingImageValue, const DerivativeType &imageJacobian, const NonZeroJacobianIndicesType &nzji, const RealType spatialJacobianDeterminant, const DerivativeType &jacobianOfSpatialJacobianDeterminant, MeasureType &measure, DerivativeType &deriv) const
itk::SumSquaredTissueVolumeDifferenceImageToImageMetric::itkStaticConstMacro
itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension)
itk::SumSquaredTissueVolumeDifferenceImageToImageMetric::AfterThreadedGetValue
void AfterThreadedGetValue(MeasureType &value) const override
itk::SumSquaredTissueVolumeDifferenceImageToImageMetric::ThreadedGetValue
void ThreadedGetValue(ThreadIdType threadID) const override
itk::SumSquaredTissueVolumeDifferenceImageToImageMetric< typename MetricBase< TElastix >::FixedImageType, typename MetricBase< TElastix >::MovingImageType >::m_TissueValue
RealType m_TissueValue
Definition itkSumSquaredTissueVolumeDifferenceImageToImageMetric.h:234
itk::SumSquaredTissueVolumeDifferenceImageToImageMetric::EvaluateTransformJacobianInnerProduct
void EvaluateTransformJacobianInnerProduct(const TransformJacobianType &jacobian, const MovingImageDerivativeType &movingImageDerivative, DerivativeType &imageJacobian) const override
itk::SumSquaredTissueVolumeDifferenceImageToImageMetric< typename MetricBase< TElastix >::FixedImageType, typename MetricBase< TElastix >::MovingImageType >::JacobianOfSpatialJacobianType
typename TransformType::JacobianOfSpatialJacobianType JacobianOfSpatialJacobianType
Definition itkSumSquaredTissueVolumeDifferenceImageToImageMetric.h:120
itk::SumSquaredTissueVolumeDifferenceImageToImageMetric< typename MetricBase< TElastix >::FixedImageType, typename MetricBase< TElastix >::MovingImageType >::m_AirValue
RealType m_AirValue
Definition itkSumSquaredTissueVolumeDifferenceImageToImageMetric.h:231
itk::SumSquaredTissueVolumeDifferenceImageToImageMetric::ThreadedGetValueAndDerivative
void ThreadedGetValueAndDerivative(ThreadIdType threadId) const override
itk::SumSquaredTissueVolumeDifferenceImageToImageMetric::~SumSquaredTissueVolumeDifferenceImageToImageMetric
~SumSquaredTissueVolumeDifferenceImageToImageMetric() override=default
itk::SumSquaredTissueVolumeDifferenceImageToImageMetric::PrintSelf
void PrintSelf(std::ostream &os, Indent indent) const override
itk::SumSquaredTissueVolumeDifferenceImageToImageMetric::GetDerivative
void GetDerivative(const TransformParametersType &parameters, DerivativeType &derivative) const override
itk::SumSquaredTissueVolumeDifferenceImageToImageMetric< typename MetricBase< TElastix >::FixedImageType, typename MetricBase< TElastix >::MovingImageType >::MovingImageDerivativeType
typename BSplineInterpolatorType::CovariantVectorType MovingImageDerivativeType
itk::SumSquaredTissueVolumeDifferenceImageToImageMetric< typename MetricBase< TElastix >::FixedImageType, typename MetricBase< TElastix >::MovingImageType >::SpatialHessianType
typename TransformType::SpatialHessianType SpatialHessianType
Definition itkSumSquaredTissueVolumeDifferenceImageToImageMetric.h:121
itk::SumSquaredTissueVolumeDifferenceImageToImageMetric::GetValueAndDerivativeSingleThreaded
void GetValueAndDerivativeSingleThreaded(const TransformParametersType &parameters, MeasureType &measure, DerivativeType &derivative) const
itk::SumSquaredTissueVolumeDifferenceImageToImageMetric< typename MetricBase< TElastix >::FixedImageType, typename MetricBase< TElastix >::MovingImageType >::JacobianOfSpatialHessianType
typename TransformType::JacobianOfSpatialHessianType JacobianOfSpatialHessianType
Definition itkSumSquaredTissueVolumeDifferenceImageToImageMetric.h:122
itk::SumSquaredTissueVolumeDifferenceImageToImageMetric< typename MetricBase< TElastix >::FixedImageType, typename MetricBase< TElastix >::MovingImageType >::Self
SumSquaredTissueVolumeDifferenceImageToImageMetric Self
Definition itkSumSquaredTissueVolumeDifferenceImageToImageMetric.h:68
itk::SumSquaredTissueVolumeDifferenceImageToImageMetric::GetValueAndDerivative
void GetValueAndDerivative(const TransformParametersType &parameters, MeasureType &Value, DerivativeType &Derivative) const override
itk::SumSquaredTissueVolumeDifferenceImageToImageMetric::AfterThreadedGetValueAndDerivative
void AfterThreadedGetValueAndDerivative(MeasureType &measure, DerivativeType &derivative) const override
itk::SumSquaredTissueVolumeDifferenceImageToImageMetric< typename MetricBase< TElastix >::FixedImageType, typename MetricBase< TElastix >::MovingImageType >::TransformType
typename Superclass::AdvancedTransformType TransformType
Definition itkSumSquaredTissueVolumeDifferenceImageToImageMetric.h:118
itk::SumSquaredTissueVolumeDifferenceImageToImageMetric< typename MetricBase< TElastix >::FixedImageType, typename MetricBase< TElastix >::MovingImageType >::ConstPointer
SmartPointer< const Self > ConstPointer
Definition itkSumSquaredTissueVolumeDifferenceImageToImageMetric.h:71
itk::SumSquaredTissueVolumeDifferenceImageToImageMetric::SumSquaredTissueVolumeDifferenceImageToImageMetric
SumSquaredTissueVolumeDifferenceImageToImageMetric()
itk::SumSquaredTissueVolumeDifferenceImageToImageMetric< typename MetricBase< TElastix >::FixedImageType, typename MetricBase< TElastix >::MovingImageType >::InternalMatrixType
typename TransformType::InternalMatrixType InternalMatrixType
Definition itkSumSquaredTissueVolumeDifferenceImageToImageMetric.h:123
itk::SumSquaredTissueVolumeDifferenceImageToImageMetric< typename MetricBase< TElastix >::FixedImageType, typename MetricBase< TElastix >::MovingImageType >::Pointer
SmartPointer< Self > Pointer
Definition itkSumSquaredTissueVolumeDifferenceImageToImageMetric.h:70
itkAdvancedImageToImageMetric.h
itk
Definition itkAdvancedImageToImageMetric.h:43

Generated on 1768596610 for elastix by 1.15.0 |