![]() |
Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages |
#include <itkAdvancedImageToImageMetric.h>
An extension of the ITK ImageToImageMetric. It is the intended base class for all elastix metrics.
This class inherits from the itk::ImageToImageMetric. The additional features of this class that makes it an AdvancedImageToImageMetric are:
The parameters used in this class are:
(MovingImageDerivativeScales 1 1 0)
Definition at line 79 of file itkAdvancedImageToImageMetric.h.
Data Structures | |
struct | GetValueAndDerivativePerThreadStruct |
struct | MultiThreaderParameterType |
Public Types | |
typedef AdvancedTransform< ScalarType, FixedImageDimension, MovingImageDimension > | AdvancedTransformType |
typedef AdvancedBSplineDeformableTransform< ScalarType, FixedImageDimension, 1 > | BSplineOrder1TransformType |
typedef AdvancedBSplineDeformableTransform< ScalarType, FixedImageDimension, 2 > | BSplineOrder2TransformType |
typedef AdvancedBSplineDeformableTransform< ScalarType, FixedImageDimension, 3 > | BSplineOrder3TransformType |
typedef AdvancedCombinationTransform< ScalarType, FixedImageDimension > | CombinationTransformType |
typedef SmartPointer< const Self > | ConstPointer |
typedef Superclass::CoordinateRepresentationType | CoordinateRepresentationType |
typedef Superclass::DerivativeType | DerivativeType |
typedef DerivativeType::ValueType | DerivativeValueType |
typedef Superclass::FixedImageConstPointer | FixedImageConstPointer |
typedef FixedImageLimiterType::OutputType | FixedImageLimiterOutputType |
typedef FixedImageLimiterType::Pointer | FixedImageLimiterPointer |
typedef LimiterFunctionBase< RealType, FixedImageDimension > | FixedImageLimiterType |
typedef Superclass::FixedImageMaskPointer | FixedImageMaskPointer |
typedef Superclass::FixedImageMaskType | FixedImageMaskType |
typedef FixedImageType::PixelType | FixedImagePixelType |
typedef FixedImageType::Pointer | FixedImagePointer |
typedef Superclass::FixedImageRegionType | FixedImageRegionType |
typedef Superclass::FixedImageType | FixedImageType |
typedef Superclass::GradientImageFilterPointer | GradientImageFilterPointer |
typedef Superclass::GradientImageFilterType | GradientImageFilterType |
typedef Superclass::GradientImagePointer | GradientImagePointer |
typedef Superclass::GradientImageType | GradientImageType |
typedef Superclass::GradientPixelType | GradientPixelType |
typedef vnl_sparse_matrix< HessianValueType > | HessianType |
typedef DerivativeType::ValueType | HessianValueType |
typedef ImageSamplerType::OutputVectorContainerPointer | ImageSampleContainerPointer |
typedef ImageSamplerType::OutputVectorContainerType | ImageSampleContainerType |
typedef ImageSamplerType::Pointer | ImageSamplerPointer |
typedef ImageSamplerBase< FixedImageType > | ImageSamplerType |
typedef Superclass::InputPointType | InputPointType |
typedef Superclass::InterpolatorPointer | InterpolatorPointer |
typedef Superclass::InterpolatorType | InterpolatorType |
typedef Superclass::MeasureType | MeasureType |
typedef Superclass::MovingImageConstPointer | MovingImageConstPointer |
typedef FixedArray< double, Self::MovingImageDimension > | MovingImageDerivativeScalesType |
typedef MovingImageLimiterType::OutputType | MovingImageLimiterOutputType |
typedef MovingImageLimiterType::Pointer | MovingImageLimiterPointer |
typedef LimiterFunctionBase< RealType, MovingImageDimension > | MovingImageLimiterType |
typedef Superclass::MovingImageMaskPointer | MovingImageMaskPointer |
typedef Superclass::MovingImageMaskType | MovingImageMaskType |
typedef Superclass::MovingImagePixelType | MovingImagePixelType |
typedef MovingImageType::Pointer | MovingImagePointer |
typedef MovingImageType::RegionType | MovingImageRegionType |
typedef Superclass::MovingImageType | MovingImageType |
typedef AdvancedTransformType::NumberOfParametersType | NumberOfParametersType |
typedef Superclass::OutputPointType | OutputPointType |
typedef Superclass::ParametersType | ParametersType |
typedef SmartPointer< Self > | Pointer |
typedef Superclass::RealType | RealType |
typedef TransformType::ScalarType | ScalarType |
typedef AdvancedImageToImageMetric | Self |
typedef ImageToImageMetric< TFixedImage, TMovingImage > | Superclass |
typedef itk::MultiThreader | ThreaderType |
typedef ThreaderType::ThreadInfoStruct | ThreadInfoType |
typedef Superclass::TransformJacobianType | TransformJacobianType |
typedef Superclass::TransformParametersType | TransformParametersType |
typedef Superclass::TransformPointer | TransformPointer |
typedef Superclass::TransformType | TransformType |
Protected Member Functions | |
AdvancedImageToImageMetric () | |
virtual void | AfterThreadedGetValueAndDerivative (MeasureType &value, DerivativeType &derivative) const |
virtual void | CheckForAdvancedTransform (void) |
virtual void | CheckForBSplineInterpolator (void) |
virtual void | CheckForBSplineTransform (void) |
virtual void | CheckNumberOfSamples (unsigned long wanted, unsigned long found) const |
virtual void | ComputeFixedImageExtrema (const FixedImageType *image, const FixedImageRegionType ®ion) |
virtual void | ComputeMovingImageExtrema (const MovingImageType *image, const MovingImageRegionType ®ion) |
virtual bool | EvaluateMovingImageValueAndDerivative (const MovingImagePointType &mappedPoint, RealType &movingImageValue, MovingImageDerivativeType *gradient) const |
virtual bool | EvaluateTransformJacobian (const FixedImagePointType &fixedImagePoint, TransformJacobianType &jacobian, NonZeroJacobianIndicesType &nzji) const |
virtual void | EvaluateTransformJacobianInnerProduct (const TransformJacobianType &jacobian, const MovingImageDerivativeType &movingImageDerivative, DerivativeType &imageJacobian) const |
virtual void | InitializeImageSampler (void) throw ( ExceptionObject ) |
virtual void | InitializeLimiters (void) |
virtual void | InitializeThreadingParameters (void) const |
virtual bool | IsInsideMovingMask (const MovingImagePointType &point) const |
itkAlignedTypedef (ITK_CACHE_LINE_ALIGNMENT, PaddedGetValueAndDerivativePerThreadStruct, AlignedGetValueAndDerivativePerThreadStruct) | |
itkPadStruct (ITK_CACHE_LINE_ALIGNMENT, GetValueAndDerivativePerThreadStruct, PaddedGetValueAndDerivativePerThreadStruct) | |
void | LaunchGetValueAndDerivativeThreaderCallback (void) const |
void | PrintSelf (std::ostream &os, Indent indent) const |
virtual void | SetUseFixedImageLimiter (bool _arg) |
virtual void | SetUseImageSampler (bool _arg) |
virtual void | SetUseMovingImageLimiter (bool _arg) |
virtual void | ThreadedGetValueAndDerivative (ThreadIdType threadID) |
virtual bool | TransformPoint (const FixedImagePointType &fixedImagePoint, MovingImagePointType &mappedPoint) const |
virtual | ~AdvancedImageToImageMetric () |
Static Protected Member Functions | |
static ITK_THREAD_RETURN_TYPE | AccumulateDerivativesThreaderCallback (void *arg) |
static ITK_THREAD_RETURN_TYPE | GetValueAndDerivativeThreaderCallback (void *arg) |
Private Member Functions | |
AdvancedImageToImageMetric (const Self &) | |
void | operator= (const Self &) |
typedef AdvancedTransform< ScalarType, FixedImageDimension, MovingImageDimension > itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::AdvancedTransformType |
Definition at line 154 of file itkAdvancedImageToImageMetric.h.
|
protected |
Definition at line 313 of file itkAdvancedImageToImageMetric.h.
|
protected |
Definition at line 312 of file itkAdvancedImageToImageMetric.h.
|
protected |
Definition at line 310 of file itkAdvancedImageToImageMetric.h.
|
protected |
Typedefs used for computing image derivatives.
Definition at line 309 of file itkAdvancedImageToImageMetric.h.
typedef AdvancedBSplineDeformableTransform< ScalarType, FixedImageDimension, 1 > itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::BSplineOrder1TransformType |
Definition at line 159 of file itkAdvancedImageToImageMetric.h.
typedef AdvancedBSplineDeformableTransform< ScalarType, FixedImageDimension, 2 > itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::BSplineOrder2TransformType |
Definition at line 160 of file itkAdvancedImageToImageMetric.h.
typedef AdvancedBSplineDeformableTransform< ScalarType, FixedImageDimension, 3 > itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::BSplineOrder3TransformType |
Definition at line 161 of file itkAdvancedImageToImageMetric.h.
|
protected |
Definition at line 323 of file itkAdvancedImageToImageMetric.h.
|
protected |
Definition at line 322 of file itkAdvancedImageToImageMetric.h.
typedef AdvancedCombinationTransform< ScalarType, FixedImageDimension > itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::CombinationTransformType |
Typedef's for the B-spline transform.
Definition at line 158 of file itkAdvancedImageToImageMetric.h.
typedef SmartPointer< const Self > itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::ConstPointer |
Definition at line 88 of file itkAdvancedImageToImageMetric.h.
typedef Superclass::CoordinateRepresentationType itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::CoordinateRepresentationType |
Typedefs from the superclass.
Definition at line 100 of file itkAdvancedImageToImageMetric.h.
typedef Superclass::DerivativeType itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::DerivativeType |
Definition at line 128 of file itkAdvancedImageToImageMetric.h.
typedef DerivativeType::ValueType itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::DerivativeValueType |
Definition at line 129 of file itkAdvancedImageToImageMetric.h.
typedef Superclass::FixedImageConstPointer itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::FixedImageConstPointer |
Definition at line 107 of file itkAdvancedImageToImageMetric.h.
|
protected |
Protected Typedefs Typedefs for indices and points.
Definition at line 300 of file itkAdvancedImageToImageMetric.h.
|
protected |
Definition at line 301 of file itkAdvancedImageToImageMetric.h.
typedef FixedImageLimiterType::OutputType itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::FixedImageLimiterOutputType |
Definition at line 146 of file itkAdvancedImageToImageMetric.h.
typedef FixedImageLimiterType::Pointer itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::FixedImageLimiterPointer |
Definition at line 145 of file itkAdvancedImageToImageMetric.h.
typedef LimiterFunctionBase< RealType, FixedImageDimension > itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::FixedImageLimiterType |
Typedefs for Limiter support.
Definition at line 144 of file itkAdvancedImageToImageMetric.h.
typedef Superclass::FixedImageMaskPointer itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::FixedImageMaskPointer |
Definition at line 124 of file itkAdvancedImageToImageMetric.h.
typedef Superclass::FixedImageMaskType itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::FixedImageMaskType |
Definition at line 123 of file itkAdvancedImageToImageMetric.h.
typedef FixedImageType::PixelType itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::FixedImagePixelType |
Some useful extra typedefs.
Definition at line 133 of file itkAdvancedImageToImageMetric.h.
typedef FixedImageType::Pointer itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::FixedImagePointer |
Definition at line 106 of file itkAdvancedImageToImageMetric.h.
|
protected |
Definition at line 303 of file itkAdvancedImageToImageMetric.h.
typedef Superclass::FixedImageRegionType itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::FixedImageRegionType |
Definition at line 108 of file itkAdvancedImageToImageMetric.h.
typedef Superclass::FixedImageType itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::FixedImageType |
Definition at line 105 of file itkAdvancedImageToImageMetric.h.
typedef Superclass::GradientImageFilterPointer itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::GradientImageFilterPointer |
Definition at line 122 of file itkAdvancedImageToImageMetric.h.
typedef Superclass::GradientImageFilterType itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::GradientImageFilterType |
Definition at line 121 of file itkAdvancedImageToImageMetric.h.
typedef Superclass::GradientImagePointer itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::GradientImagePointer |
Definition at line 120 of file itkAdvancedImageToImageMetric.h.
typedef Superclass::GradientImageType itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::GradientImageType |
Definition at line 119 of file itkAdvancedImageToImageMetric.h.
typedef Superclass::GradientPixelType itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::GradientPixelType |
Definition at line 118 of file itkAdvancedImageToImageMetric.h.
typedef vnl_sparse_matrix< HessianValueType > itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::HessianType |
Definition at line 165 of file itkAdvancedImageToImageMetric.h.
typedef DerivativeType::ValueType itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::HessianValueType |
Hessian type; for SelfHessian (experimental feature)
Definition at line 164 of file itkAdvancedImageToImageMetric.h.
typedef ImageSamplerType::OutputVectorContainerPointer itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::ImageSampleContainerPointer |
Definition at line 141 of file itkAdvancedImageToImageMetric.h.
typedef ImageSamplerType::OutputVectorContainerType itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::ImageSampleContainerType |
Definition at line 140 of file itkAdvancedImageToImageMetric.h.
typedef ImageSamplerType::Pointer itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::ImageSamplerPointer |
Definition at line 139 of file itkAdvancedImageToImageMetric.h.
typedef ImageSamplerBase< FixedImageType > itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::ImageSamplerType |
Typedefs for the ImageSampler.
Definition at line 138 of file itkAdvancedImageToImageMetric.h.
typedef Superclass::InputPointType itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::InputPointType |
Definition at line 111 of file itkAdvancedImageToImageMetric.h.
typedef Superclass::InterpolatorPointer itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::InterpolatorPointer |
Definition at line 116 of file itkAdvancedImageToImageMetric.h.
typedef Superclass::InterpolatorType itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::InterpolatorType |
Definition at line 115 of file itkAdvancedImageToImageMetric.h.
|
protected |
Definition at line 319 of file itkAdvancedImageToImageMetric.h.
|
protected |
Definition at line 318 of file itkAdvancedImageToImageMetric.h.
typedef Superclass::MeasureType itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::MeasureType |
Definition at line 127 of file itkAdvancedImageToImageMetric.h.
typedef Superclass::MovingImageConstPointer itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::MovingImageConstPointer |
Definition at line 104 of file itkAdvancedImageToImageMetric.h.
|
protected |
Definition at line 305 of file itkAdvancedImageToImageMetric.h.
typedef FixedArray< double, Self::MovingImageDimension > itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::MovingImageDerivativeScalesType |
Definition at line 135 of file itkAdvancedImageToImageMetric.h.
|
protected |
Definition at line 320 of file itkAdvancedImageToImageMetric.h.
|
protected |
Definition at line 302 of file itkAdvancedImageToImageMetric.h.
typedef MovingImageLimiterType::OutputType itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::MovingImageLimiterOutputType |
Definition at line 149 of file itkAdvancedImageToImageMetric.h.
typedef MovingImageLimiterType::Pointer itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::MovingImageLimiterPointer |
Definition at line 148 of file itkAdvancedImageToImageMetric.h.
typedef LimiterFunctionBase< RealType, MovingImageDimension > itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::MovingImageLimiterType |
Definition at line 147 of file itkAdvancedImageToImageMetric.h.
typedef Superclass::MovingImageMaskPointer itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::MovingImageMaskPointer |
Definition at line 126 of file itkAdvancedImageToImageMetric.h.
typedef Superclass::MovingImageMaskType itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::MovingImageMaskType |
Definition at line 125 of file itkAdvancedImageToImageMetric.h.
typedef Superclass::MovingImagePixelType itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::MovingImagePixelType |
Definition at line 102 of file itkAdvancedImageToImageMetric.h.
typedef MovingImageType::Pointer itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::MovingImagePointer |
Definition at line 103 of file itkAdvancedImageToImageMetric.h.
|
protected |
Definition at line 304 of file itkAdvancedImageToImageMetric.h.
typedef MovingImageType::RegionType itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::MovingImageRegionType |
Definition at line 134 of file itkAdvancedImageToImageMetric.h.
typedef Superclass::MovingImageType itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::MovingImageType |
Definition at line 101 of file itkAdvancedImageToImageMetric.h.
|
protected |
Typedefs for support of sparse Jacobians and compact support of transformations.
Definition at line 327 of file itkAdvancedImageToImageMetric.h.
typedef AdvancedTransformType::NumberOfParametersType itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::NumberOfParametersType |
Definition at line 155 of file itkAdvancedImageToImageMetric.h.
typedef Superclass::OutputPointType itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::OutputPointType |
Definition at line 112 of file itkAdvancedImageToImageMetric.h.
typedef Superclass::ParametersType itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::ParametersType |
Definition at line 130 of file itkAdvancedImageToImageMetric.h.
typedef SmartPointer< Self > itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::Pointer |
Definition at line 87 of file itkAdvancedImageToImageMetric.h.
typedef Superclass::RealType itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::RealType |
Definition at line 117 of file itkAdvancedImageToImageMetric.h.
|
protected |
Definition at line 316 of file itkAdvancedImageToImageMetric.h.
|
protected |
Definition at line 315 of file itkAdvancedImageToImageMetric.h.
typedef TransformType::ScalarType itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::ScalarType |
Advanced transform.
Definition at line 152 of file itkAdvancedImageToImageMetric.h.
typedef AdvancedImageToImageMetric itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::Self |
Standard class typedefs.
Definition at line 85 of file itkAdvancedImageToImageMetric.h.
typedef ImageToImageMetric< TFixedImage, TMovingImage > itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::Superclass |
Definition at line 86 of file itkAdvancedImageToImageMetric.h.
typedef itk::MultiThreader itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::ThreaderType |
Typedefs for multi-threading.
Definition at line 168 of file itkAdvancedImageToImageMetric.h.
typedef ThreaderType::ThreadInfoStruct itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::ThreadInfoType |
Definition at line 169 of file itkAdvancedImageToImageMetric.h.
typedef Superclass::TransformJacobianType itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::TransformJacobianType |
Definition at line 114 of file itkAdvancedImageToImageMetric.h.
typedef Superclass::TransformParametersType itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::TransformParametersType |
Definition at line 113 of file itkAdvancedImageToImageMetric.h.
typedef Superclass::TransformPointer itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::TransformPointer |
Definition at line 110 of file itkAdvancedImageToImageMetric.h.
typedef Superclass::TransformType itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::TransformType |
Definition at line 109 of file itkAdvancedImageToImageMetric.h.
|
protected |
Constructor.
|
protectedvirtual |
Destructor.
|
private |
|
staticprotected |
AccumulateDerivatives threader callback function.
|
inlineprotectedvirtual |
Finalize multi-threaded metric computation.
Reimplemented in itk::AdvancedMeanSquaresImageToImageMetric< TFixedImage, TMovingImage >, itk::AdvancedMeanSquaresImageToImageMetric< MetricBase< TElastix >::FixedImageType, MetricBase< TElastix >::MovingImageType >, itk::AdvancedNormalizedCorrelationImageToImageMetric< TFixedImage, TMovingImage >, itk::AdvancedNormalizedCorrelationImageToImageMetric< MetricBase< TElastix >::FixedImageType, MetricBase< TElastix >::MovingImageType >, itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >, itk::AdvancedKappaStatisticImageToImageMetric< MetricBase< TElastix >::FixedImageType, MetricBase< TElastix >::MovingImageType >, itk::TransformBendingEnergyPenaltyTerm< TFixedImage, TScalarType >, and itk::TransformBendingEnergyPenaltyTerm< MetricBase< TElastix >::FixedImageType, double >.
Definition at line 371 of file itkAdvancedImageToImageMetric.h.
|
virtual |
Contains calls from GetValueAndDerivative that are thread-unsafe, together with preparation for multi-threading. Note that the only reason why this function is not protected, is because the ComboMetric needs to call it.
Reimplemented in itk::TransformRigidityPenaltyTerm< TFixedImage, TScalarType >, and itk::TransformRigidityPenaltyTerm< MetricBase< TElastix >::FixedImageType, double >.
|
protectedvirtual |
Methods to support transforms with sparse Jacobians, like the BSplineTransform Check if the transform is an AdvancedTransform. Called by Initialize. If so, we can speed up derivative calculations by only inspecting the parameters in the support region of a point.
|
protectedvirtual |
Methods for image derivative evaluation support Initialize variables for image derivative computation; this method is called by Initialize.
|
protectedvirtual |
Check if the transform is a B-spline. Called by Initialize.
|
protectedvirtual |
Check if enough samples have been found to compute a reliable estimate of the value/derivative; throws an exception if not.
|
protectedvirtual |
Methods for the support of gray value limiters. Compute the extrema of fixed image over a region Initializes the m_Fixed[True]{Max,Min}[Limit] This method is called by InitializeLimiters() and uses the FixedLimitRangeRatio
|
protectedvirtual |
Compute the extrema of the moving image over a region Initializes the m_Moving[True]{Max,Min}[Limit] This method is called by InitializeLimiters() and uses the MovingLimitRangeRatio;
|
protectedvirtual |
Compute the image value (and possibly derivative) at a transformed point. Checks if the point lies within the moving image buffer (bool return). If no gradient is wanted, set the gradient argument to 0. If a BSplineInterpolationFunction or AdvacnedLinearInterpolationFunction is used, this class obtains image derivatives from the B-spline or linear interpolator. Otherwise, image derivatives are computed using nearest neighbor interpolation of a precomputed (central difference) gradient image.
Reimplemented in itk::MultiInputImageToImageMetricBase< TFixedImage, TMovingImage >, and itk::MultiInputImageToImageMetricBase< MetricBase< TElastix >::FixedImageType, MetricBase< TElastix >::MovingImageType >.
|
protectedvirtual |
This function returns a reference to the transform Jacobians. This is either a reference to the full TransformJacobian or a reference to a sparse Jacobians. The m_NonZeroJacobianIndices contains the indices that are nonzero. The length of NonZeroJacobianIndices is set in the CheckForAdvancedTransform function.
|
protectedvirtual |
Computes the inner product of transform Jacobian with moving image gradient. The results are stored in imageJacobian, which is supposed to have the right size (same length as Jacobian's number of columns).
Reimplemented in itk::VarianceOverLastDimensionImageMetric< TFixedImage, TMovingImage >, and itk::VarianceOverLastDimensionImageMetric< MetricBase< TElastix >::FixedImageType, MetricBase< TElastix >::MovingImageType >.
|
virtual |
Run-time type information (and related methods).
Reimplemented in elastix::TransformRigidityPenalty< TElastix >, elastix::AdvancedMattesMutualInformationMetric< TElastix >, itk::AdvancedNormalizedCorrelationImageToImageMetric< TFixedImage, TMovingImage >, elastix::KNNGraphAlphaMutualInformationMetric< TElastix >, itk::AdvancedNormalizedCorrelationImageToImageMetric< MetricBase< TElastix >::FixedImageType, MetricBase< TElastix >::MovingImageType >, elastix::NormalizedMutualInformationMetric< TElastix >, itk::ParzenWindowMutualInformationImageToImageMetric< TFixedImage, TMovingImage >, itk::ParzenWindowMutualInformationImageToImageMetric< MetricBase< TElastix >::FixedImageType, MetricBase< TElastix >::MovingImageType >, itk::DistancePreservingRigidityPenaltyTerm< TFixedImage, TScalarType >, itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >, itk::KNNGraphAlphaMutualInformationImageToImageMetric< TFixedImage, TMovingImage >, itk::DistancePreservingRigidityPenaltyTerm< MetricBase< TElastix >::FixedImageType, double >, itk::GradientDifferenceImageToImageMetric< MetricBase< TElastix >::FixedImageType, MetricBase< TElastix >::MovingImageType >, itk::KNNGraphAlphaMutualInformationImageToImageMetric< MetricBase< TElastix >::FixedImageType, MetricBase< TElastix >::MovingImageType >, itk::ParzenWindowNormalizedMutualInformationImageToImageMetric< TFixedImage, TMovingImage >, elastix::VarianceOverLastDimensionMetric< TElastix >, itk::ParzenWindowNormalizedMutualInformationImageToImageMetric< MetricBase< TElastix >::FixedImageType, MetricBase< TElastix >::MovingImageType >, itk::TransformRigidityPenaltyTerm< TFixedImage, TScalarType >, itk::TransformRigidityPenaltyTerm< MetricBase< TElastix >::FixedImageType, double >, itk::ParzenWindowHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::ParzenWindowHistogramImageToImageMetric< MetricBase< TElastix >::FixedImageType, MetricBase< TElastix >::MovingImageType >, elastix::DistancePreservingRigidityPenalty< TElastix >, elastix::AdvancedKappaStatisticMetric< TElastix >, itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >, itk::AdvancedMeanSquaresImageToImageMetric< TFixedImage, TMovingImage >, itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >, itk::AdvancedKappaStatisticImageToImageMetric< MetricBase< TElastix >::FixedImageType, MetricBase< TElastix >::MovingImageType >, itk::AdvancedMeanSquaresImageToImageMetric< MetricBase< TElastix >::FixedImageType, MetricBase< TElastix >::MovingImageType >, elastix::TransformBendingEnergyPenalty< TElastix >, itk::VarianceOverLastDimensionImageMetric< TFixedImage, TMovingImage >, itk::VarianceOverLastDimensionImageMetric< MetricBase< TElastix >::FixedImageType, MetricBase< TElastix >::MovingImageType >, elastix::AdvancedMeanSquaresMetric< TElastix >, elastix::DisplacementMagnitudePenalty< TElastix >, elastix::AdvancedNormalizedCorrelationMetric< TElastix >, itk::TransformBendingEnergyPenaltyTerm< TFixedImage, TScalarType >, itk::TransformBendingEnergyPenaltyTerm< MetricBase< TElastix >::FixedImageType, double >, itk::MultiInputImageToImageMetricBase< TFixedImage, TMovingImage >, itk::PatternIntensityImageToImageMetric< TFixedImage, TMovingImage >, itk::MultiInputImageToImageMetricBase< MetricBase< TElastix >::FixedImageType, MetricBase< TElastix >::MovingImageType >, itk::PatternIntensityImageToImageMetric< MetricBase< TElastix >::FixedImageType, MetricBase< TElastix >::MovingImageType >, elastix::NormalizedGradientCorrelationMetric< TElastix >, elastix::PatternIntensityMetric< TElastix >, elastix::GradientDifferenceMetric< TElastix >, itk::NormalizedGradientCorrelationImageToImageMetric< TFixedImage, TMovingImage >, itk::NormalizedGradientCorrelationImageToImageMetric< MetricBase< TElastix >::FixedImageType, MetricBase< TElastix >::MovingImageType >, itk::TransformPenaltyTerm< TFixedImage, TScalarType >, itk::TransformPenaltyTerm< MetricBase< TElastix >::FixedImageType, double >, itk::ImageToImageMetricWithFeatures< TFixedImage, TMovingImage, TFixedFeatureImage, TMovingFeatureImage >, itk::DisplacementMagnitudePenaltyTerm< TFixedImage, TScalarType >, and itk::DisplacementMagnitudePenaltyTerm< MetricBase< TElastix >::FixedImageType, double >.
|
virtual |
|
virtual |
|
inlinevirtual |
Definition at line 194 of file itkAdvancedImageToImageMetric.h.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Experimental feature: compute SelfHessian. This base class just returns an identity matrix of the right size.
Reimplemented in itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >, itk::AdvancedMeanSquaresImageToImageMetric< TFixedImage, TMovingImage >, itk::AdvancedMeanSquaresImageToImageMetric< MetricBase< TElastix >::FixedImageType, MetricBase< TElastix >::MovingImageType >, itk::TransformBendingEnergyPenaltyTerm< TFixedImage, TScalarType >, and itk::TransformBendingEnergyPenaltyTerm< MetricBase< TElastix >::FixedImageType, double >.
|
inline |
Get the advanced transform.
Definition at line 186 of file itkAdvancedImageToImageMetric.h.
|
virtual |
Inheriting classes can specify whether they use the image limiter functionality. This method allows the user to inspect this setting.
|
virtual |
Inheriting classes can specify whether they use the image sampler functionality; This method allows the user to inspect this setting.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
staticprotected |
GetValueAndDerivative threader callback function.
|
virtual |
Initialize the Metric by making sure that all the components are present and plugged together correctly.
Reimplemented in itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >, itk::MultiInputImageToImageMetricBase< TFixedImage, TMovingImage >, itk::MultiInputImageToImageMetricBase< MetricBase< TElastix >::FixedImageType, MetricBase< TElastix >::MovingImageType >, itk::KNNGraphAlphaMutualInformationImageToImageMetric< TFixedImage, TMovingImage >, itk::KNNGraphAlphaMutualInformationImageToImageMetric< MetricBase< TElastix >::FixedImageType, MetricBase< TElastix >::MovingImageType >, elastix::AdvancedMattesMutualInformationMetric< TElastix >, itk::ImageToImageMetricWithFeatures< TFixedImage, TMovingImage, TFixedFeatureImage, TMovingFeatureImage >, elastix::TransformRigidityPenalty< TElastix >, elastix::NormalizedMutualInformationMetric< TElastix >, elastix::VarianceOverLastDimensionMetric< TElastix >, elastix::KNNGraphAlphaMutualInformationMetric< TElastix >, itk::AdvancedMeanSquaresImageToImageMetric< TFixedImage, TMovingImage >, itk::AdvancedMeanSquaresImageToImageMetric< MetricBase< TElastix >::FixedImageType, MetricBase< TElastix >::MovingImageType >, itk::PatternIntensityImageToImageMetric< TFixedImage, TMovingImage >, itk::PatternIntensityImageToImageMetric< MetricBase< TElastix >::FixedImageType, MetricBase< TElastix >::MovingImageType >, itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >, itk::GradientDifferenceImageToImageMetric< MetricBase< TElastix >::FixedImageType, MetricBase< TElastix >::MovingImageType >, elastix::DistancePreservingRigidityPenalty< TElastix >, itk::VarianceOverLastDimensionImageMetric< TFixedImage, TMovingImage >, itk::VarianceOverLastDimensionImageMetric< MetricBase< TElastix >::FixedImageType, MetricBase< TElastix >::MovingImageType >, elastix::AdvancedNormalizedCorrelationMetric< TElastix >, elastix::AdvancedKappaStatisticMetric< TElastix >, itk::ParzenWindowHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::ParzenWindowHistogramImageToImageMetric< MetricBase< TElastix >::FixedImageType, MetricBase< TElastix >::MovingImageType >, elastix::TransformBendingEnergyPenalty< TElastix >, itk::DistancePreservingRigidityPenaltyTerm< TFixedImage, TScalarType >, itk::DistancePreservingRigidityPenaltyTerm< MetricBase< TElastix >::FixedImageType, double >, elastix::AdvancedMeanSquaresMetric< TElastix >, itk::TransformRigidityPenaltyTerm< TFixedImage, TScalarType >, itk::TransformRigidityPenaltyTerm< MetricBase< TElastix >::FixedImageType, double >, elastix::DisplacementMagnitudePenalty< TElastix >, itk::NormalizedGradientCorrelationImageToImageMetric< TFixedImage, TMovingImage >, itk::NormalizedGradientCorrelationImageToImageMetric< MetricBase< TElastix >::FixedImageType, MetricBase< TElastix >::MovingImageType >, elastix::NormalizedGradientCorrelationMetric< TElastix >, elastix::PatternIntensityMetric< TElastix >, and elastix::GradientDifferenceMetric< TElastix >.
|
protectedvirtual |
Protected methods ************** Methods for image sampler support Initialize variables related to the image sampler; called by Initialize.
Reimplemented in itk::MultiInputImageToImageMetricBase< TFixedImage, TMovingImage >, and itk::MultiInputImageToImageMetricBase< MetricBase< TElastix >::FixedImageType, MetricBase< TElastix >::MovingImageType >.
|
protectedvirtual |
Initialize the {Fixed,Moving}[True]{Max,Min}[Limit] and the {Fixed,Moving}ImageLimiter Only does something when Use{Fixed,Moving}Limiter is set to true;
|
protectedvirtual |
Initialize some multi-threading related parameters.
Reimplemented in itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >, itk::ParzenWindowHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::ParzenWindowHistogramImageToImageMetric< MetricBase< TElastix >::FixedImageType, MetricBase< TElastix >::MovingImageType >, itk::AdvancedNormalizedCorrelationImageToImageMetric< TFixedImage, TMovingImage >, itk::AdvancedNormalizedCorrelationImageToImageMetric< MetricBase< TElastix >::FixedImageType, MetricBase< TElastix >::MovingImageType >, itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >, and itk::AdvancedKappaStatisticImageToImageMetric< MetricBase< TElastix >::FixedImageType, MetricBase< TElastix >::MovingImageType >.
|
protectedvirtual |
Convenience method: check if point is inside the moving mask.
Reimplemented in itk::MultiInputImageToImageMetricBase< TFixedImage, TMovingImage >, and itk::MultiInputImageToImageMetricBase< MetricBase< TElastix >::FixedImageType, MetricBase< TElastix >::MovingImageType >.
|
protected |
|
protected |
itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::itkStaticConstMacro | ( | MovingImageDimension | , |
unsigned | int, | ||
TMovingImage::ImageDimension | |||
) |
Constants for the image dimensions.
itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::itkStaticConstMacro | ( | FixedImageDimension | , |
unsigned | int, | ||
TFixedImage::ImageDimension | |||
) |
|
protected |
Launch MultiThread GetValueAndDerivative
|
private |
|
protected |
PrintSelf.
|
virtual |
|
virtual |
|
virtual |
Set/Get the image sampler.
|
virtual |
|
virtual |
Set/Get the Moving/Fixed limiter. Its thresholds and bounds are set by the metric. Setting a limiter is only mandatory if GetUse{Fixed,Moving}Limiter() returns true.
|
virtual |
A percentage that defines how much the gray value range is extended maxlimit = max + LimitRangeRatio * (max - min) minlimit = min - LimitRangeRatio * (max - min) Default: 0.01; If you use a nearest neighbor or linear interpolator, set it to zero and use a hard limiter.
|
virtual |
Set number of threads to use for computations.
|
virtual |
Set/Get the required ratio of valid samples; default 0.25. When less than this ratio*numberOfSamplesTried samples map inside the moving image buffer, an exception will be thrown.
|
virtual |
|
inlinevirtual |
Public methods Set the transform, of advanced type.
Definition at line 174 of file itkAdvancedImageToImageMetric.h.
|
protectedvirtual |
Inheriting classes can specify whether they use the image limiter functionality Make sure to set it before calling Initialize; default: false.
|
protectedvirtual |
Inheriting classes can specify whether they use the image sampler functionality Make sure to set it before calling Initialize; default: false.
|
virtual |
Switch the function BeforeThreadedGetValueAndDerivative on or off.
|
virtual |
You may specify a scaling vector for the moving image derivatives. If the UseMovingImageDerivativeScales is true, the moving image derivatives are multiplied by the moving image derivative scales (element-wise) You may use this to avoid deformations in the z-dimension, for example, by setting the moving image derivative scales to (1,1,0). This is a rather experimental feature. In most cases you do not need it.
|
protectedvirtual |
|
virtual |
Select the use of multi-threading
Reimplemented in itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >.
|
inlineprotectedvirtual |
Multi-threaded metric computation. Multi-threaded version of GetValueAndDerivative().
Reimplemented in itk::AdvancedMeanSquaresImageToImageMetric< TFixedImage, TMovingImage >, itk::AdvancedMeanSquaresImageToImageMetric< MetricBase< TElastix >::FixedImageType, MetricBase< TElastix >::MovingImageType >, itk::AdvancedNormalizedCorrelationImageToImageMetric< TFixedImage, TMovingImage >, itk::AdvancedNormalizedCorrelationImageToImageMetric< MetricBase< TElastix >::FixedImageType, MetricBase< TElastix >::MovingImageType >, itk::AdvancedKappaStatisticImageToImageMetric< TFixedImage, TMovingImage >, itk::AdvancedKappaStatisticImageToImageMetric< MetricBase< TElastix >::FixedImageType, MetricBase< TElastix >::MovingImageType >, itk::TransformBendingEnergyPenaltyTerm< TFixedImage, TScalarType >, and itk::TransformBendingEnergyPenaltyTerm< MetricBase< TElastix >::FixedImageType, double >.
Definition at line 367 of file itkAdvancedImageToImageMetric.h.
|
protectedvirtual |
Transform a point from FixedImage domain to MovingImage domain. This function also checks if mapped point is within support region of the transform. It returns true if so, and false otherwise.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
protected |
Definition at line 349 of file itkAdvancedImageToImageMetric.h.
|
protected |
Definition at line 341 of file itkAdvancedImageToImageMetric.h.
|
protected |
Definition at line 342 of file itkAdvancedImageToImageMetric.h.
|
protected |
Definition at line 345 of file itkAdvancedImageToImageMetric.h.
|
protected |
Variables for the Limiters.
Definition at line 353 of file itkAdvancedImageToImageMetric.h.
|
protected |
Definition at line 360 of file itkAdvancedImageToImageMetric.h.
|
protected |
Definition at line 359 of file itkAdvancedImageToImageMetric.h.
|
protected |
Definition at line 356 of file itkAdvancedImageToImageMetric.h.
|
protected |
Definition at line 355 of file itkAdvancedImageToImageMetric.h.
|
private |
Definition at line 536 of file itkAdvancedImageToImageMetric.h.
|
mutableprotected |
Definition at line 421 of file itkAdvancedImageToImageMetric.h.
|
mutableprotected |
Definition at line 422 of file itkAdvancedImageToImageMetric.h.
|
mutableprotected |
Protected Variables Variables for ImageSampler support. m_ImageSampler is mutable, because it is changed in the GetValue(), etc, which are const functions.
Definition at line 334 of file itkAdvancedImageToImageMetric.h.
|
protected |
Variables for image derivative computation.
Definition at line 337 of file itkAdvancedImageToImageMetric.h.
|
protected |
Definition at line 338 of file itkAdvancedImageToImageMetric.h.
|
protected |
Definition at line 340 of file itkAdvancedImageToImageMetric.h.
|
protected |
Definition at line 339 of file itkAdvancedImageToImageMetric.h.
|
protected |
Definition at line 344 of file itkAdvancedImageToImageMetric.h.
|
private |
Definition at line 544 of file itkAdvancedImageToImageMetric.h.
|
protected |
Definition at line 354 of file itkAdvancedImageToImageMetric.h.
|
protected |
Definition at line 362 of file itkAdvancedImageToImageMetric.h.
|
protected |
Definition at line 361 of file itkAdvancedImageToImageMetric.h.
|
protected |
Definition at line 358 of file itkAdvancedImageToImageMetric.h.
|
protected |
Definition at line 357 of file itkAdvancedImageToImageMetric.h.
|
private |
Definition at line 537 of file itkAdvancedImageToImageMetric.h.
|
protected |
Definition at line 343 of file itkAdvancedImageToImageMetric.h.
|
private |
Definition at line 540 of file itkAdvancedImageToImageMetric.h.
|
private |
Definition at line 542 of file itkAdvancedImageToImageMetric.h.
|
mutableprotected |
Definition at line 399 of file itkAdvancedImageToImageMetric.h.
|
protected |
Variables to store the AdvancedTransform.
Definition at line 348 of file itkAdvancedImageToImageMetric.h.
|
protected |
Definition at line 350 of file itkAdvancedImageToImageMetric.h.
|
private |
Definition at line 538 of file itkAdvancedImageToImageMetric.h.
|
private |
Private member variables.
Definition at line 535 of file itkAdvancedImageToImageMetric.h.
|
protected |
Variables for multi-threading.
Definition at line 384 of file itkAdvancedImageToImageMetric.h.
|
private |
Definition at line 541 of file itkAdvancedImageToImageMetric.h.
|
private |
Definition at line 539 of file itkAdvancedImageToImageMetric.h.
|
protected |
Definition at line 385 of file itkAdvancedImageToImageMetric.h.
|
protected |
Definition at line 386 of file itkAdvancedImageToImageMetric.h.
Generated on 07-03-2016 for elastix by ![]() |
![]() |