go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
Data Structures | Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes
itk::PCAMetric< TFixedImage, TMovingImage > Class Template Reference

#include <itkPCAMetric.h>

Detailed Description

template<class TFixedImage, class TMovingImage>
class itk::PCAMetric< TFixedImage, TMovingImage >

Definition at line 33 of file itkPCAMetric.h.

Inheritance diagram for itk::PCAMetric< TFixedImage, TMovingImage >:
Inheritance graph
[legend]

Data Structures

struct  PCAMetricGetSamplesPerThreadStruct
 
struct  PCAMetricMultiThreaderParameterType
 

Public Types

using ConstPointer = SmartPointer< const Self >
 
using ConstPointer = SmartPointer< const Self >
 
using DerivativeMatrixType = vnl_matrix< DerivativeValueType >
 
using DerivativeValueType = typename DerivativeType::ValueType
 
using FixedImageLimiterOutputType = typename FixedImageLimiterType::OutputType
 
using FixedImageLimiterOutputType = typename FixedImageLimiterType::OutputType
 
using FixedImageLimiterType = LimiterFunctionBase< RealType, FixedImageDimension >
 
using FixedImageLimiterType = LimiterFunctionBase< RealType, FixedImageDimension >
 
using FixedImagePixelType = typename FixedImageType::PixelType
 
using FixedImagePixelType = typename FixedImageType::PixelType
 
using FixedImageSizeType = typename FixedImageRegionType::SizeType
 
using FixedImageSizeType = typename FixedImageRegionType::SizeType
 
using ImageSampleContainerPointer = typename ImageSamplerType::OutputVectorContainerPointer
 
using ImageSampleContainerPointer = typename ImageSamplerType::OutputVectorContainerPointer
 
using ImageSampleContainerType = typename ImageSamplerType::OutputVectorContainerType
 
using ImageSampleContainerType = typename ImageSamplerType::OutputVectorContainerType
 
using ImageSamplerPointer = typename ImageSamplerType::Pointer
 
using ImageSamplerPointer = typename ImageSamplerType::Pointer
 
using ImageSamplerType = ImageSamplerBase< FixedImageType >
 
using ImageSamplerType = ImageSamplerBase< FixedImageType >
 
using MatrixType = vnl_matrix< RealType >
 
using MovingImageDerivativeScalesType = FixedArray< double, Self::MovingImageDimension >
 
using MovingImageDerivativeScalesType = FixedArray< double, Self::MovingImageDimension >
 
using MovingImageLimiterOutputType = typename MovingImageLimiterType::OutputType
 
using MovingImageLimiterOutputType = typename MovingImageLimiterType::OutputType
 
using MovingImageLimiterType = LimiterFunctionBase< RealType, MovingImageDimension >
 
using MovingImageLimiterType = LimiterFunctionBase< RealType, MovingImageDimension >
 
using MovingImageRegionType = typename MovingImageType::RegionType
 
using MovingImageRegionType = typename MovingImageType::RegionType
 
using Pointer = SmartPointer< Self >
 
using Pointer = SmartPointer< Self >
 
using Self = PCAMetric
 
using Self = PCAMetric
 
using Superclass = AdvancedImageToImageMetric< TFixedImage, TMovingImage >
 
using Superclass = AdvancedImageToImageMetric< TFixedImage, TMovingImage >
 
using ThreaderType = itk::PlatformMultiThreader
 
using ThreadInfoType = typename ThreaderType::WorkUnitInfo
 
- Public Types inherited from itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >
using AdvancedTransformType = AdvancedTransform< ScalarType, FixedImageDimension, MovingImageDimension >
 
using BSplineOrder1TransformPointer = typename BSplineOrder1TransformType::Pointer
 
using BSplineOrder1TransformType = AdvancedBSplineDeformableTransform< ScalarType, FixedImageDimension, 1 >
 
using BSplineOrder2TransformPointer = typename BSplineOrder2TransformType::Pointer
 
using BSplineOrder2TransformType = AdvancedBSplineDeformableTransform< ScalarType, FixedImageDimension, 2 >
 
using BSplineOrder3TransformPointer = typename BSplineOrder3TransformType::Pointer
 
using BSplineOrder3TransformType = AdvancedBSplineDeformableTransform< ScalarType, FixedImageDimension, 3 >
 
using CombinationTransformType = AdvancedCombinationTransform< ScalarType, FixedImageDimension >
 
using ConstPointer = SmartPointer< const Self >
 
using DerivativeValueType = typename DerivativeType::ValueType
 
using FixedImageLimiterOutputType = typename FixedImageLimiterType::OutputType
 
using FixedImageLimiterPointer = typename FixedImageLimiterType::Pointer
 
using FixedImageLimiterType = LimiterFunctionBase< RealType, FixedImageDimension >
 
using FixedImageMaskSpatialObject2Type = ImageMaskSpatialObject< Self::FixedImageDimension >
 
using FixedImagePixelType = typename FixedImageType::PixelType
 
using FixedImagePointer = typename FixedImageType::Pointer
 
using HessianType = vnl_sparse_matrix< HessianValueType >
 
using HessianValueType = typename DerivativeType::ValueType
 
using ImageSampleContainerPointer = typename ImageSamplerType::OutputVectorContainerPointer
 
using ImageSampleContainerType = typename ImageSamplerType::OutputVectorContainerType
 
using ImageSamplerPointer = typename ImageSamplerType::Pointer
 
using ImageSamplerType = ImageSamplerBase< FixedImageType >
 
using MovingImageDerivativeScalesType = FixedArray< double, Self::MovingImageDimension >
 
using MovingImageLimiterOutputType = typename MovingImageLimiterType::OutputType
 
using MovingImageLimiterPointer = typename MovingImageLimiterType::Pointer
 
using MovingImageLimiterType = LimiterFunctionBase< RealType, MovingImageDimension >
 
using MovingImageMaskSpatialObject2Type = ImageMaskSpatialObject< Self::MovingImageDimension >
 
using MovingImagePointer = typename MovingImageType::Pointer
 
using MovingImageRegionType = typename MovingImageType::RegionType
 
using NumberOfParametersType = typename AdvancedTransformType::NumberOfParametersType
 
using Pointer = SmartPointer< Self >
 
using ScalarType = typename TransformType::ScalarType
 
using Self = AdvancedImageToImageMetric
 
using Superclass = ImageToImageMetric< TFixedImage, TMovingImage >
 
using ThreaderType = itk::PlatformMultiThreader
 
using ThreadInfoType = typename ThreaderType::WorkUnitInfo
 

Public Member Functions

virtual const char * GetClassName () const
 
virtual const char * GetClassName () const
 
virtual void GetDerivative (const TransformParametersType &parameters, DerivativeType &derivative) const
 
void GetDerivative (const TransformParametersType &parameters, DerivativeType &derivative) const override
 
virtual int GetNumSamplesLastDimension () const
 
virtual bool GetSampleLastDimensionRandomly () const
 
virtual MeasureType GetValue (const TransformParametersType &parameters) const
 
MeasureType GetValue (const TransformParametersType &parameters) const override
 
virtual void GetValueAndDerivative (const TransformParametersType &parameters, MeasureType &Value, DerivativeType &Derivative) const
 
void GetValueAndDerivative (const TransformParametersType &parameters, MeasureType &Value, DerivativeType &Derivative) const override
 
void GetValueAndDerivativeSingleThreaded (const TransformParametersType &parameters, MeasureType &Value, DerivativeType &Derivative) const
 
virtual void Initialize ()
 
void Initialize () override
 
 ITK_DISALLOW_COPY_AND_MOVE (PCAMetric)
 
 ITK_DISALLOW_COPY_AND_MOVE (PCAMetric)
 
 itkStaticConstMacro (FixedImageDimension, unsigned int, FixedImageType::ImageDimension)
 
 itkStaticConstMacro (FixedImageDimension, unsigned int, FixedImageType::ImageDimension)
 
 itkStaticConstMacro (MovingImageDimension, unsigned int, MovingImageType::ImageDimension)
 
 itkStaticConstMacro (MovingImageDimension, unsigned int, MovingImageType::ImageDimension)
 
virtual void SetDeNoise (bool _arg)
 
virtual void SetGridSize (FixedImageSizeType _arg)
 
virtual void SetGridSize (FixedImageSizeType _arg)
 
virtual void SetNumAdditionalSamplesFixed (unsigned int _arg)
 
virtual void SetNumEigenValues (unsigned int _arg)
 
virtual void SetNumEigenValues (unsigned int _arg)
 
virtual void SetNumSamplesLastDimension (unsigned int _arg)
 
virtual void SetReducedDimensionIndex (unsigned int _arg)
 
virtual void SetSampleLastDimensionRandomly (bool _arg)
 
virtual void SetSubtractMean (bool _arg)
 
virtual void SetSubtractMean (bool _arg)
 
virtual void SetTransformIsStackTransform (bool _arg)
 
virtual void SetTransformIsStackTransform (bool _arg)
 
virtual void SetUseDerivativeOfMean (bool _arg)
 
virtual void SetVarNoise (double _arg)
 
- Public Member Functions inherited from itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >
virtual void BeforeThreadedGetValueAndDerivative (const TransformParametersType &parameters) const
 
virtual const char * GetClassName () const
 
virtual const FixedImageLimiterTypeGetFixedImageLimiter ()
 
virtual double GetFixedLimitRangeRatio () const
 
virtual ImageSamplerTypeGetImageSampler () const
 
virtual const MovingImageDerivativeScalesTypeGetMovingImageDerivativeScales ()
 
virtual const MovingImageLimiterTypeGetMovingImageLimiter ()
 
virtual double GetMovingLimitRangeRatio () const
 
virtual double GetRequiredRatioOfValidSamples () const
 
virtual bool GetScaleGradientWithRespectToMovingImageOrientation () const
 
virtual void GetSelfHessian (const TransformParametersType &parameters, HessianType &H) const
 
const AdvancedTransformTypeGetTransform () const override
 
virtual bool GetUseFixedImageLimiter () const
 
virtual bool GetUseImageSampler () const
 
virtual const boolGetUseMetricSingleThreaded ()
 
virtual bool GetUseMovingImageDerivativeScales () const
 
virtual bool GetUseMovingImageLimiter () const
 
virtual const boolGetUseMultiThread ()
 
void Initialize () override
 
 ITK_DISALLOW_COPY_AND_MOVE (AdvancedImageToImageMetric)
 
 itkStaticConstMacro (FixedImageDimension, unsigned int, TFixedImage::ImageDimension)
 
 itkStaticConstMacro (MovingImageDimension, unsigned int, TMovingImage::ImageDimension)
 
virtual void SetFixedImageLimiter (FixedImageLimiterType *_arg)
 
virtual void SetFixedLimitRangeRatio (double _arg)
 
virtual void SetImageSampler (ImageSamplerType *_arg)
 
virtual void SetMovingImageDerivativeScales (MovingImageDerivativeScalesType _arg)
 
virtual void SetMovingImageLimiter (MovingImageLimiterType *_arg)
 
virtual void SetMovingLimitRangeRatio (double _arg)
 
virtual void SetNumberOfWorkUnits (ThreadIdType numberOfThreads)
 
virtual void SetRequiredRatioOfValidSamples (double _arg)
 
virtual void SetScaleGradientWithRespectToMovingImageOrientation (bool _arg)
 
virtual void SetTransform (AdvancedTransformType *arg)
 
virtual void SetUseMetricSingleThreaded (bool _arg)
 
virtual void SetUseMovingImageDerivativeScales (bool _arg)
 
virtual void SetUseMultiThread (bool _arg)
 
virtual void UseMetricSingleThreadedOff ()
 
virtual void UseMetricSingleThreadedOn ()
 
virtual void UseMultiThreadOff ()
 
virtual void UseMultiThreadOn ()
 

Static Public Member Functions

static Pointer New ()
 
static Pointer New ()
 

Protected Types

using BSplineInterpolatorType = BSplineInterpolateImageFunction< MovingImageType, CoordinateRepresentationType, double >
 
using BSplineInterpolatorType = BSplineInterpolateImageFunction< MovingImageType, CoordinateRepresentationType, double >
 
using CentralDifferenceGradientFilterType = GradientImageFilter< MovingImageType, RealType, RealType >
 
using CentralDifferenceGradientFilterType = GradientImageFilter< MovingImageType, RealType, RealType >
 
using FixedImageContinuousIndexType = typename itk::ContinuousIndex< CoordinateRepresentationType, FixedImageDimension >
 
using FixedImageContinuousIndexType = typename itk::ContinuousIndex< CoordinateRepresentationType, FixedImageDimension >
 
using FixedImageIndexType = typename FixedImageType::IndexType
 
using FixedImageIndexType = typename FixedImageType::IndexType
 
using FixedImageIndexValueType = typename FixedImageIndexType::IndexValueType
 
using FixedImageIndexValueType = typename FixedImageIndexType::IndexValueType
 
using FixedImagePointType = typename TransformType::InputPointType
 
using FixedImagePointType = typename TransformType::InputPointType
 
using MovingImageContinuousIndexType = typename InterpolatorType::ContinuousIndexType
 
using MovingImageContinuousIndexType = typename InterpolatorType::ContinuousIndexType
 
using MovingImageDerivativeType = typename BSplineInterpolatorType::CovariantVectorType
 
using MovingImageDerivativeType = typename BSplineInterpolatorType::CovariantVectorType
 
using MovingImageIndexType = typename MovingImageType::IndexType
 
using MovingImageIndexType = typename MovingImageType::IndexType
 
using MovingImagePointType = typename TransformType::OutputPointType
 
using MovingImagePointType = typename TransformType::OutputPointType
 
using NonZeroJacobianIndicesType = typename AdvancedTransformType::NonZeroJacobianIndicesType
 
using NonZeroJacobianIndicesType = typename AdvancedTransformType::NonZeroJacobianIndicesType
 
- Protected Types inherited from itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >
using BSplineInterpolatorFloatPointer = typename BSplineInterpolatorFloatType::Pointer
 
using BSplineInterpolatorFloatType = BSplineInterpolateImageFunction< MovingImageType, CoordinateRepresentationType, float >
 
using BSplineInterpolatorPointer = typename BSplineInterpolatorType::Pointer
 
using BSplineInterpolatorType = BSplineInterpolateImageFunction< MovingImageType, CoordinateRepresentationType, double >
 
using CentralDifferenceGradientFilterPointer = typename CentralDifferenceGradientFilterType::Pointer
 
using CentralDifferenceGradientFilterType = GradientImageFilter< MovingImageType, RealType, RealType >
 
using FixedImageIndexType = typename FixedImageType::IndexType
 
using FixedImageIndexValueType = typename FixedImageIndexType::IndexValueType
 
using FixedImagePointType = typename TransformType::InputPointType
 
using LinearInterpolatorPointer = typename LinearInterpolatorType::Pointer
 
using LinearInterpolatorType = AdvancedLinearInterpolateImageFunction< MovingImageType, CoordinateRepresentationType >
 
using MovingImageContinuousIndexType = typename InterpolatorType::ContinuousIndexType
 
using MovingImageDerivativeType = typename BSplineInterpolatorType::CovariantVectorType
 
using MovingImageIndexType = typename MovingImageType::IndexType
 
using MovingImagePointType = typename TransformType::OutputPointType
 
using NonZeroJacobianIndicesType = typename AdvancedTransformType::NonZeroJacobianIndicesType
 
using ReducedBSplineInterpolatorPointer = typename ReducedBSplineInterpolatorType::Pointer
 
using ReducedBSplineInterpolatorType = ReducedDimensionBSplineInterpolateImageFunction< MovingImageType, CoordinateRepresentationType, double >
 

Protected Member Functions

void AfterThreadedComputeDerivative (DerivativeType &derivative) const
 
void AfterThreadedGetSamples (MeasureType &value) const
 
void EvaluateTransformJacobianInnerProduct (const TransformJacobianType &jacobian, const MovingImageDerivativeType &movingImageDerivative, DerivativeType &imageJacobian) const
 
void EvaluateTransformJacobianInnerProduct (const TransformJacobianType &jacobian, const MovingImageDerivativeType &movingImageDerivative, DerivativeType &imageJacobian) const override
 
void InitializeThreadingParameters () const override
 
void LaunchComputeDerivativeThreaderCallback () const
 
void LaunchGetSamplesThreaderCallback () const
 
 PCAMetric ()
 
 PCAMetric ()
 
void PrintSelf (std::ostream &os, Indent indent) const
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
void ThreadedComputeDerivative (ThreadIdType threadID)
 
void ThreadedGetSamples (ThreadIdType threadID)
 
virtual ~PCAMetric ()
 
 ~PCAMetric () override=default
 
- Protected Member Functions inherited from itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >
 AdvancedImageToImageMetric ()
 
virtual void AfterThreadedGetValue (MeasureType &value) const
 
virtual void AfterThreadedGetValueAndDerivative (MeasureType &value, DerivativeType &derivative) const
 
virtual void CheckForAdvancedTransform ()
 
virtual void CheckForBSplineInterpolator ()
 
virtual void CheckForBSplineTransform () const
 
virtual void CheckNumberOfSamples (unsigned long wanted, unsigned long found) const
 
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
 
bool FastEvaluateMovingImageValueAndDerivative (const MovingImagePointType &mappedPoint, RealType &movingImageValue, MovingImageDerivativeType *gradient, const ThreadIdType threadId) const
 
virtual void InitializeImageSampler ()
 
virtual void InitializeLimiters ()
 
virtual void InitializeThreadingParameters () const
 
virtual bool IsInsideMovingMask (const MovingImagePointType &point) const
 
 itkAlignedTypedef (ITK_CACHE_LINE_ALIGNMENT, PaddedGetValueAndDerivativePerThreadStruct, AlignedGetValueAndDerivativePerThreadStruct)
 
 itkAlignedTypedef (ITK_CACHE_LINE_ALIGNMENT, PaddedGetValuePerThreadStruct, AlignedGetValuePerThreadStruct)
 
 itkPadStruct (ITK_CACHE_LINE_ALIGNMENT, GetValueAndDerivativePerThreadStruct, PaddedGetValueAndDerivativePerThreadStruct)
 
 itkPadStruct (ITK_CACHE_LINE_ALIGNMENT, GetValuePerThreadStruct, PaddedGetValuePerThreadStruct)
 
void LaunchGetValueAndDerivativeThreaderCallback () const
 
void LaunchGetValueThreaderCallback () const
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
virtual void SetUseFixedImageLimiter (bool _arg)
 
virtual void SetUseImageSampler (bool _arg)
 
virtual void SetUseMovingImageLimiter (bool _arg)
 
virtual void ThreadedGetValue (ThreadIdType threadID)
 
virtual void ThreadedGetValueAndDerivative (ThreadIdType threadID)
 
MovingImagePointType TransformPoint (const FixedImagePointType &fixedImagePoint) const
 
 ~AdvancedImageToImageMetric () override=default
 

Static Protected Member Functions

static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION ComputeDerivativeThreaderCallback (void *arg)
 
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION GetSamplesThreaderCallback (void *arg)
 
- Static Protected Member Functions inherited from itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION AccumulateDerivativesThreaderCallback (void *arg)
 
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION GetValueAndDerivativeThreaderCallback (void *arg)
 
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION GetValueThreaderCallback (void *arg)
 

Protected Attributes

vnl_vector< doublem_eigenValues
 
vnl_vector< doublem_fifthEigenVector
 
vnl_vector< doublem_firstEigenVector
 
vnl_vector< doublem_fourthEigenVector
 
vnl_vector< doublem_normdCdmu
 
int m_NumberOfSamples
 
vnl_vector< doublem_secondEigenVector
 
vnl_vector< doublem_seventhEigenVector
 
vnl_vector< doublem_sixthEigenVector
 
vnl_vector< doublem_thirdEigenVector
 
- Protected Attributes inherited from itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >
AdvancedTransformType::Pointer m_AdvancedTransform { nullptr }
 
BSplineInterpolatorPointer m_BSplineInterpolator { nullptr }
 
BSplineInterpolatorFloatPointer m_BSplineInterpolatorFloat { nullptr }
 
CentralDifferenceGradientFilterPointer m_CentralDifferenceGradientFilter { nullptr }
 
FixedImageLimiterPointer m_FixedImageLimiter { nullptr }
 
FixedImageLimiterOutputType m_FixedImageMaxLimit { 1 }
 
FixedImageLimiterOutputType m_FixedImageMinLimit { 0 }
 
FixedImagePixelType m_FixedImageTrueMax { 1 }
 
FixedImagePixelType m_FixedImageTrueMin { 0 }
 
double m_FixedLimitRangeRatio { 0.01 }
 
std::unique_ptr< AlignedGetValueAndDerivativePerThreadStruct[]> m_GetValueAndDerivativePerThreadVariables
 
ThreadIdType m_GetValueAndDerivativePerThreadVariablesSize { 0 }
 
std::unique_ptr< AlignedGetValuePerThreadStruct[]> m_GetValuePerThreadVariables { nullptr }
 
ThreadIdType m_GetValuePerThreadVariablesSize { 0 }
 
ImageSamplerPointer m_ImageSampler { nullptr }
 
bool m_InterpolatorIsBSpline { false }
 
bool m_InterpolatorIsBSplineFloat { false }
 
bool m_InterpolatorIsLinear { false }
 
bool m_InterpolatorIsReducedBSpline { false }
 
LinearInterpolatorPointer m_LinearInterpolator { nullptr }
 
MovingImageLimiterPointer m_MovingImageLimiter { nullptr }
 
MovingImageLimiterOutputType m_MovingImageMaxLimit { 1 }
 
MovingImageLimiterOutputType m_MovingImageMinLimit { 0 }
 
MovingImagePixelType m_MovingImageTrueMax { 1 }
 
MovingImagePixelType m_MovingImageTrueMin { 0 }
 
double m_MovingLimitRangeRatio { 0.01 }
 
ReducedBSplineInterpolatorPointer m_ReducedBSplineInterpolator { nullptr }
 
MultiThreaderParameterType m_ThreaderMetricParameters
 
bool m_TransformIsAdvanced { false }
 
bool m_TransformIsBSpline { false }
 
bool m_UseMetricSingleThreaded { true }
 
bool m_UseMultiThread { false }
 
bool m_UseOpenMP
 

Private Member Functions

 itkAlignedTypedef (ITK_CACHE_LINE_ALIGNMENT, PaddedPCAMetricGetSamplesPerThreadStruct, AlignedPCAMetricGetSamplesPerThreadStruct)
 
 itkPadStruct (ITK_CACHE_LINE_ALIGNMENT, PCAMetricGetSamplesPerThreadStruct, PaddedPCAMetricGetSamplesPerThreadStruct)
 
void SampleRandom (const int n, const int m, std::vector< int > &numbers) const
 

Private Attributes

MatrixType m_Atmm
 
DerivativeMatrixType m_CSv
 
bool m_DeNoise
 
unsigned int m_G
 
FixedImageSizeType m_GridSize
 
unsigned int m_LastDimIndex
 
unsigned int m_NumAdditionalSamplesFixed
 
unsigned int m_NumEigenValues { 6 }
 
unsigned int m_NumSamplesLastDimension
 
std::vector< AlignedPCAMetricGetSamplesPerThreadStruct > m_PCAMetricGetSamplesPerThreadVariables
 
PCAMetricMultiThreaderParameterType m_PCAMetricThreaderParameters
 
std::vector< unsigned intm_PixelStartIndex
 
unsigned int m_ReducedDimensionIndex
 
bool m_SampleLastDimensionRandomly
 
bool m_SubtractMean { false }
 
DerivativeMatrixType m_Sv
 
bool m_TransformIsStackTransform { false }
 
bool m_UseDerivativeOfMean
 
double m_VarNoise
 
DerivativeMatrixType m_vdSdmu_part1
 
DerivativeMatrixType m_vSAtmm
 

Member Typedef Documentation

◆ BSplineInterpolatorType [1/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::BSplineInterpolatorType = BSplineInterpolateImageFunction<MovingImageType, CoordinateRepresentationType, double>
protected

Typedefs used for computing image derivatives.

Definition at line 321 of file itkAdvancedImageToImageMetric.h.

◆ BSplineInterpolatorType [2/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::BSplineInterpolatorType = BSplineInterpolateImageFunction<MovingImageType, CoordinateRepresentationType, double>
protected

Typedefs used for computing image derivatives.

Definition at line 321 of file itkAdvancedImageToImageMetric.h.

◆ CentralDifferenceGradientFilterType [1/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::CentralDifferenceGradientFilterType = GradientImageFilter<MovingImageType, RealType, RealType>
protected

Definition at line 333 of file itkAdvancedImageToImageMetric.h.

◆ CentralDifferenceGradientFilterType [2/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::CentralDifferenceGradientFilterType = GradientImageFilter<MovingImageType, RealType, RealType>
protected

Definition at line 333 of file itkAdvancedImageToImageMetric.h.

◆ ConstPointer [1/2]

template<class TFixedImage , class TMovingImage >
using itk::PCAMetric< TFixedImage, TMovingImage >::ConstPointer = SmartPointer<const Self>

Definition at line 42 of file itkPCAMetric.h.

◆ ConstPointer [2/2]

template<class TFixedImage , class TMovingImage >
using itk::PCAMetric< TFixedImage, TMovingImage >::ConstPointer = SmartPointer<const Self>

Definition at line 41 of file itkPCAMetric_F_multithreaded.h.

◆ DerivativeMatrixType

template<class TFixedImage , class TMovingImage >
using itk::PCAMetric< TFixedImage, TMovingImage >::DerivativeMatrixType = vnl_matrix<DerivativeValueType>

Definition at line 102 of file itkPCAMetric_F_multithreaded.h.

◆ DerivativeValueType

template<class TFixedImage , class TMovingImage >
using itk::PCAMetric< TFixedImage, TMovingImage >::DerivativeValueType = typename DerivativeType::ValueType

Definition at line 97 of file itkPCAMetric_F_multithreaded.h.

◆ FixedImageContinuousIndexType [1/2]

template<class TFixedImage , class TMovingImage >
using itk::PCAMetric< TFixedImage, TMovingImage >::FixedImageContinuousIndexType = typename itk::ContinuousIndex<CoordinateRepresentationType, FixedImageDimension>
protected

Definition at line 150 of file itkPCAMetric.h.

◆ FixedImageContinuousIndexType [2/2]

template<class TFixedImage , class TMovingImage >
using itk::PCAMetric< TFixedImage, TMovingImage >::FixedImageContinuousIndexType = typename itk::ContinuousIndex<CoordinateRepresentationType, FixedImageDimension>
protected

Definition at line 152 of file itkPCAMetric_F_multithreaded.h.

◆ FixedImageIndexType [1/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::FixedImageIndexType = typename FixedImageType::IndexType
protected

Protected Typedefs Typedefs for indices and points.

Definition at line 313 of file itkAdvancedImageToImageMetric.h.

◆ FixedImageIndexType [2/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::FixedImageIndexType = typename FixedImageType::IndexType
protected

Protected Typedefs Typedefs for indices and points.

Definition at line 313 of file itkAdvancedImageToImageMetric.h.

◆ FixedImageIndexValueType [1/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::FixedImageIndexValueType = typename FixedImageIndexType::IndexValueType
protected

Definition at line 314 of file itkAdvancedImageToImageMetric.h.

◆ FixedImageIndexValueType [2/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::FixedImageIndexValueType = typename FixedImageIndexType::IndexValueType
protected

Definition at line 314 of file itkAdvancedImageToImageMetric.h.

◆ FixedImageLimiterOutputType [1/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::FixedImageLimiterOutputType = typename FixedImageLimiterType::OutputType

Definition at line 151 of file itkAdvancedImageToImageMetric.h.

◆ FixedImageLimiterOutputType [2/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::FixedImageLimiterOutputType = typename FixedImageLimiterType::OutputType

Definition at line 151 of file itkAdvancedImageToImageMetric.h.

◆ FixedImageLimiterType [1/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::FixedImageLimiterType = LimiterFunctionBase<RealType, FixedImageDimension>

Typedefs for Limiter support.

Definition at line 149 of file itkAdvancedImageToImageMetric.h.

◆ FixedImageLimiterType [2/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::FixedImageLimiterType = LimiterFunctionBase<RealType, FixedImageDimension>

Typedefs for Limiter support.

Definition at line 149 of file itkAdvancedImageToImageMetric.h.

◆ FixedImagePixelType [1/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::FixedImagePixelType = typename FixedImageType::PixelType

Some useful extra typedefs.

Definition at line 138 of file itkAdvancedImageToImageMetric.h.

◆ FixedImagePixelType [2/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::FixedImagePixelType = typename FixedImageType::PixelType

Some useful extra typedefs.

Definition at line 138 of file itkAdvancedImageToImageMetric.h.

◆ FixedImagePointType [1/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::FixedImagePointType = typename TransformType::InputPointType
protected

Definition at line 316 of file itkAdvancedImageToImageMetric.h.

◆ FixedImagePointType [2/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::FixedImagePointType = typename TransformType::InputPointType
protected

Definition at line 316 of file itkAdvancedImageToImageMetric.h.

◆ FixedImageSizeType [1/2]

template<class TFixedImage , class TMovingImage >
using itk::PCAMetric< TFixedImage, TMovingImage >::FixedImageSizeType = typename FixedImageRegionType::SizeType

Definition at line 45 of file itkPCAMetric.h.

◆ FixedImageSizeType [2/2]

template<class TFixedImage , class TMovingImage >
using itk::PCAMetric< TFixedImage, TMovingImage >::FixedImageSizeType = typename FixedImageRegionType::SizeType

Definition at line 44 of file itkPCAMetric_F_multithreaded.h.

◆ ImageSampleContainerPointer [1/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::ImageSampleContainerPointer = typename ImageSamplerType::OutputVectorContainerPointer

Definition at line 146 of file itkAdvancedImageToImageMetric.h.

◆ ImageSampleContainerPointer [2/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::ImageSampleContainerPointer = typename ImageSamplerType::OutputVectorContainerPointer

Definition at line 146 of file itkAdvancedImageToImageMetric.h.

◆ ImageSampleContainerType [1/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::ImageSampleContainerType = typename ImageSamplerType::OutputVectorContainerType

Definition at line 145 of file itkAdvancedImageToImageMetric.h.

◆ ImageSampleContainerType [2/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::ImageSampleContainerType = typename ImageSamplerType::OutputVectorContainerType

Definition at line 145 of file itkAdvancedImageToImageMetric.h.

◆ ImageSamplerPointer [1/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::ImageSamplerPointer = typename ImageSamplerType::Pointer

Definition at line 144 of file itkAdvancedImageToImageMetric.h.

◆ ImageSamplerPointer [2/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::ImageSamplerPointer = typename ImageSamplerType::Pointer

Definition at line 144 of file itkAdvancedImageToImageMetric.h.

◆ ImageSamplerType [1/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::ImageSamplerType = ImageSamplerBase<FixedImageType>

Typedefs for the ImageSampler.

Definition at line 143 of file itkAdvancedImageToImageMetric.h.

◆ ImageSamplerType [2/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::ImageSamplerType = ImageSamplerBase<FixedImageType>

Typedefs for the ImageSampler.

Definition at line 143 of file itkAdvancedImageToImageMetric.h.

◆ MatrixType

template<class TFixedImage , class TMovingImage >
using itk::PCAMetric< TFixedImage, TMovingImage >::MatrixType = vnl_matrix<RealType>

Definition at line 101 of file itkPCAMetric_F_multithreaded.h.

◆ MovingImageContinuousIndexType [1/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::MovingImageContinuousIndexType = typename InterpolatorType::ContinuousIndexType
protected

Definition at line 318 of file itkAdvancedImageToImageMetric.h.

◆ MovingImageContinuousIndexType [2/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::MovingImageContinuousIndexType = typename InterpolatorType::ContinuousIndexType
protected

Definition at line 318 of file itkAdvancedImageToImageMetric.h.

◆ MovingImageDerivativeScalesType [1/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::MovingImageDerivativeScalesType = FixedArray<double, Self::MovingImageDimension>

Definition at line 140 of file itkAdvancedImageToImageMetric.h.

◆ MovingImageDerivativeScalesType [2/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::MovingImageDerivativeScalesType = FixedArray<double, Self::MovingImageDimension>

Definition at line 140 of file itkAdvancedImageToImageMetric.h.

◆ MovingImageDerivativeType [1/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::MovingImageDerivativeType = typename BSplineInterpolatorType::CovariantVectorType
protected

Definition at line 332 of file itkAdvancedImageToImageMetric.h.

◆ MovingImageDerivativeType [2/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::MovingImageDerivativeType = typename BSplineInterpolatorType::CovariantVectorType
protected

Definition at line 332 of file itkAdvancedImageToImageMetric.h.

◆ MovingImageIndexType [1/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::MovingImageIndexType = typename MovingImageType::IndexType
protected

Definition at line 315 of file itkAdvancedImageToImageMetric.h.

◆ MovingImageIndexType [2/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::MovingImageIndexType = typename MovingImageType::IndexType
protected

Definition at line 315 of file itkAdvancedImageToImageMetric.h.

◆ MovingImageLimiterOutputType [1/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::MovingImageLimiterOutputType = typename MovingImageLimiterType::OutputType

Definition at line 154 of file itkAdvancedImageToImageMetric.h.

◆ MovingImageLimiterOutputType [2/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::MovingImageLimiterOutputType = typename MovingImageLimiterType::OutputType

Definition at line 154 of file itkAdvancedImageToImageMetric.h.

◆ MovingImageLimiterType [1/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::MovingImageLimiterType = LimiterFunctionBase<RealType, MovingImageDimension>

Definition at line 152 of file itkAdvancedImageToImageMetric.h.

◆ MovingImageLimiterType [2/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::MovingImageLimiterType = LimiterFunctionBase<RealType, MovingImageDimension>

Definition at line 152 of file itkAdvancedImageToImageMetric.h.

◆ MovingImagePointType [1/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::MovingImagePointType = typename TransformType::OutputPointType
protected

Definition at line 317 of file itkAdvancedImageToImageMetric.h.

◆ MovingImagePointType [2/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::MovingImagePointType = typename TransformType::OutputPointType
protected

Definition at line 317 of file itkAdvancedImageToImageMetric.h.

◆ MovingImageRegionType [1/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::MovingImageRegionType = typename MovingImageType::RegionType

Definition at line 139 of file itkAdvancedImageToImageMetric.h.

◆ MovingImageRegionType [2/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::MovingImageRegionType = typename MovingImageType::RegionType

Definition at line 139 of file itkAdvancedImageToImageMetric.h.

◆ NonZeroJacobianIndicesType [1/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::NonZeroJacobianIndicesType = typename AdvancedTransformType::NonZeroJacobianIndicesType
protected

Typedefs for support of sparse Jacobians and compact support of transformations.

Definition at line 337 of file itkAdvancedImageToImageMetric.h.

◆ NonZeroJacobianIndicesType [2/2]

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::NonZeroJacobianIndicesType = typename AdvancedTransformType::NonZeroJacobianIndicesType
protected

Typedefs for support of sparse Jacobians and compact support of transformations.

Definition at line 337 of file itkAdvancedImageToImageMetric.h.

◆ Pointer [1/2]

template<class TFixedImage , class TMovingImage >
using itk::PCAMetric< TFixedImage, TMovingImage >::Pointer = SmartPointer<Self>

Definition at line 41 of file itkPCAMetric.h.

◆ Pointer [2/2]

template<class TFixedImage , class TMovingImage >
using itk::PCAMetric< TFixedImage, TMovingImage >::Pointer = SmartPointer<Self>

Definition at line 40 of file itkPCAMetric_F_multithreaded.h.

◆ Self [1/2]

template<class TFixedImage , class TMovingImage >
using itk::PCAMetric< TFixedImage, TMovingImage >::Self = PCAMetric

Standard class typedefs.

Definition at line 39 of file itkPCAMetric.h.

◆ Self [2/2]

template<class TFixedImage , class TMovingImage >
using itk::PCAMetric< TFixedImage, TMovingImage >::Self = PCAMetric

Standard class typedefs.

Definition at line 38 of file itkPCAMetric_F_multithreaded.h.

◆ Superclass [1/2]

template<class TFixedImage , class TMovingImage >
using itk::PCAMetric< TFixedImage, TMovingImage >::Superclass = AdvancedImageToImageMetric<TFixedImage, TMovingImage>

Definition at line 40 of file itkPCAMetric.h.

◆ Superclass [2/2]

template<class TFixedImage , class TMovingImage >
using itk::PCAMetric< TFixedImage, TMovingImage >::Superclass = AdvancedImageToImageMetric<TFixedImage, TMovingImage>

Definition at line 39 of file itkPCAMetric_F_multithreaded.h.

◆ ThreaderType

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::ThreaderType = itk::PlatformMultiThreader

Typedefs for multi-threading.

Definition at line 175 of file itkAdvancedImageToImageMetric.h.

◆ ThreadInfoType

template<class TFixedImage , class TMovingImage >
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::ThreadInfoType = typename ThreaderType::WorkUnitInfo

Definition at line 176 of file itkAdvancedImageToImageMetric.h.

Constructor & Destructor Documentation

◆ PCAMetric() [1/2]

template<class TFixedImage , class TMovingImage >
itk::PCAMetric< TFixedImage, TMovingImage >::PCAMetric ( )
protected

◆ ~PCAMetric() [1/2]

template<class TFixedImage , class TMovingImage >
virtual itk::PCAMetric< TFixedImage, TMovingImage >::~PCAMetric ( )
inlineprotectedvirtual

Reimplemented in elastix::PCAMetric< TElastix >.

Definition at line 139 of file itkPCAMetric.h.

◆ PCAMetric() [2/2]

template<class TFixedImage , class TMovingImage >
itk::PCAMetric< TFixedImage, TMovingImage >::PCAMetric ( )
protected

◆ ~PCAMetric() [2/2]

template<class TFixedImage , class TMovingImage >
itk::PCAMetric< TFixedImage, TMovingImage >::~PCAMetric ( )
overrideprotecteddefault

Member Function Documentation

◆ AfterThreadedComputeDerivative()

template<class TFixedImage , class TMovingImage >
void itk::PCAMetric< TFixedImage, TMovingImage >::AfterThreadedComputeDerivative ( DerivativeType &  derivative) const
protected

◆ AfterThreadedGetSamples()

template<class TFixedImage , class TMovingImage >
void itk::PCAMetric< TFixedImage, TMovingImage >::AfterThreadedGetSamples ( MeasureType &  value) const
protected

Gather the values and derivatives from all threads

◆ ComputeDerivativeThreaderCallback()

template<class TFixedImage , class TMovingImage >
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION itk::PCAMetric< TFixedImage, TMovingImage >::ComputeDerivativeThreaderCallback ( void *  arg)
staticprotected

◆ EvaluateTransformJacobianInnerProduct() [1/2]

template<class TFixedImage , class TMovingImage >
void itk::PCAMetric< TFixedImage, TMovingImage >::EvaluateTransformJacobianInnerProduct ( const TransformJacobianType &  jacobian,
const MovingImageDerivativeType movingImageDerivative,
DerivativeType &  imageJacobian 
) const
protectedvirtual

Computes the innerproduct 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 from itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >.

◆ EvaluateTransformJacobianInnerProduct() [2/2]

template<class TFixedImage , class TMovingImage >
void itk::PCAMetric< TFixedImage, TMovingImage >::EvaluateTransformJacobianInnerProduct ( const TransformJacobianType &  jacobian,
const MovingImageDerivativeType movingImageDerivative,
DerivativeType &  imageJacobian 
) const
overrideprotectedvirtual

Computes the innerproduct 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 from itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >.

◆ GetClassName() [1/2]

template<class TFixedImage , class TMovingImage >
virtual const char * itk::PCAMetric< TFixedImage, TMovingImage >::GetClassName ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >.

Reimplemented in elastix::PCAMetric< TElastix >.

◆ GetClassName() [2/2]

template<class TFixedImage , class TMovingImage >
virtual const char * itk::PCAMetric< TFixedImage, TMovingImage >::GetClassName ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >.

Reimplemented in elastix::PCAMetric< TElastix >.

◆ GetDerivative() [1/2]

template<class TFixedImage , class TMovingImage >
virtual void itk::PCAMetric< TFixedImage, TMovingImage >::GetDerivative ( const TransformParametersType &  parameters,
DerivativeType &  derivative 
) const
virtual

Get the derivatives of the match measure.

◆ GetDerivative() [2/2]

template<class TFixedImage , class TMovingImage >
void itk::PCAMetric< TFixedImage, TMovingImage >::GetDerivative ( const TransformParametersType &  parameters,
DerivativeType &  derivative 
) const
override

Get the derivatives of the match measure.

◆ GetNumSamplesLastDimension()

template<class TFixedImage , class TMovingImage >
virtual int itk::PCAMetric< TFixedImage, TMovingImage >::GetNumSamplesLastDimension ( ) const
virtual

◆ GetSampleLastDimensionRandomly()

template<class TFixedImage , class TMovingImage >
virtual bool itk::PCAMetric< TFixedImage, TMovingImage >::GetSampleLastDimensionRandomly ( ) const
virtual

Get functions.

◆ GetSamplesThreaderCallback()

template<class TFixedImage , class TMovingImage >
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION itk::PCAMetric< TFixedImage, TMovingImage >::GetSamplesThreaderCallback ( void *  arg)
staticprotected

Helper function to launch the threads.

◆ GetValue() [1/2]

template<class TFixedImage , class TMovingImage >
virtual MeasureType itk::PCAMetric< TFixedImage, TMovingImage >::GetValue ( const TransformParametersType &  parameters) const
virtual

Get the value for single valued optimizers.

◆ GetValue() [2/2]

template<class TFixedImage , class TMovingImage >
MeasureType itk::PCAMetric< TFixedImage, TMovingImage >::GetValue ( const TransformParametersType &  parameters) const
override

Get the value for single valued optimizers.

◆ GetValueAndDerivative() [1/2]

template<class TFixedImage , class TMovingImage >
virtual void itk::PCAMetric< TFixedImage, TMovingImage >::GetValueAndDerivative ( const TransformParametersType &  parameters,
MeasureType &  Value,
DerivativeType &  Derivative 
) const
virtual

Get value and derivatives for multiple valued optimizers.

◆ GetValueAndDerivative() [2/2]

template<class TFixedImage , class TMovingImage >
void itk::PCAMetric< TFixedImage, TMovingImage >::GetValueAndDerivative ( const TransformParametersType &  parameters,
MeasureType &  Value,
DerivativeType &  Derivative 
) const
override

◆ GetValueAndDerivativeSingleThreaded()

template<class TFixedImage , class TMovingImage >
void itk::PCAMetric< TFixedImage, TMovingImage >::GetValueAndDerivativeSingleThreaded ( const TransformParametersType &  parameters,
MeasureType &  Value,
DerivativeType &  Derivative 
) const

Get value and derivatives for multiple valued optimizers.

◆ Initialize() [1/2]

template<class TFixedImage , class TMovingImage >
virtual void itk::PCAMetric< TFixedImage, TMovingImage >::Initialize ( )
virtual

Initialize the Metric by making sure that all the components are present and plugged together correctly.

  • Call the superclass' implementation.

Reimplemented in elastix::PCAMetric< TElastix >.

◆ Initialize() [2/2]

template<class TFixedImage , class TMovingImage >
void itk::PCAMetric< TFixedImage, TMovingImage >::Initialize ( )
override

Initialize the Metric by making sure that all the components are present and plugged together correctly.

  • Call the superclass' implementation.

◆ InitializeThreadingParameters()

template<class TFixedImage , class TMovingImage >
void itk::PCAMetric< TFixedImage, TMovingImage >::InitializeThreadingParameters ( ) const
overrideprotectedvirtual

Initialize some multi-threading related parameters.

Reimplemented from itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >.

◆ ITK_DISALLOW_COPY_AND_MOVE() [1/2]

template<class TFixedImage , class TMovingImage >
itk::PCAMetric< TFixedImage, TMovingImage >::ITK_DISALLOW_COPY_AND_MOVE ( PCAMetric< TFixedImage, TMovingImage >  )

◆ ITK_DISALLOW_COPY_AND_MOVE() [2/2]

template<class TFixedImage , class TMovingImage >
itk::PCAMetric< TFixedImage, TMovingImage >::ITK_DISALLOW_COPY_AND_MOVE ( PCAMetric< TFixedImage, TMovingImage >  )

◆ itkAlignedTypedef()

template<class TFixedImage , class TMovingImage >
itk::PCAMetric< TFixedImage, TMovingImage >::itkAlignedTypedef ( ITK_CACHE_LINE_ALIGNMENT  ,
PaddedPCAMetricGetSamplesPerThreadStruct  ,
AlignedPCAMetricGetSamplesPerThreadStruct   
)
private

◆ itkPadStruct()

template<class TFixedImage , class TMovingImage >
itk::PCAMetric< TFixedImage, TMovingImage >::itkPadStruct ( ITK_CACHE_LINE_ALIGNMENT  ,
PCAMetricGetSamplesPerThreadStruct  ,
PaddedPCAMetricGetSamplesPerThreadStruct   
)
private

◆ itkStaticConstMacro() [1/4]

template<class TFixedImage , class TMovingImage >
itk::PCAMetric< TFixedImage, TMovingImage >::itkStaticConstMacro ( FixedImageDimension  ,
unsigned int  ,
FixedImageType::ImageDimension   
)

The fixed image dimension.

◆ itkStaticConstMacro() [2/4]

template<class TFixedImage , class TMovingImage >
itk::PCAMetric< TFixedImage, TMovingImage >::itkStaticConstMacro ( FixedImageDimension  ,
unsigned int  ,
FixedImageType::ImageDimension   
)

The fixed image dimension.

◆ itkStaticConstMacro() [3/4]

template<class TFixedImage , class TMovingImage >
itk::PCAMetric< TFixedImage, TMovingImage >::itkStaticConstMacro ( MovingImageDimension  ,
unsigned int  ,
MovingImageType::ImageDimension   
)

The moving image dimension.

◆ itkStaticConstMacro() [4/4]

template<class TFixedImage , class TMovingImage >
itk::PCAMetric< TFixedImage, TMovingImage >::itkStaticConstMacro ( MovingImageDimension  ,
unsigned int  ,
MovingImageType::ImageDimension   
)

The moving image dimension.

◆ LaunchComputeDerivativeThreaderCallback()

template<class TFixedImage , class TMovingImage >
void itk::PCAMetric< TFixedImage, TMovingImage >::LaunchComputeDerivativeThreaderCallback ( ) const
protected

◆ LaunchGetSamplesThreaderCallback()

template<class TFixedImage , class TMovingImage >
void itk::PCAMetric< TFixedImage, TMovingImage >::LaunchGetSamplesThreaderCallback ( ) const
protected

Helper functions to launch the threads.

◆ New() [1/2]

template<class TFixedImage , class TMovingImage >
static Pointer itk::PCAMetric< TFixedImage, TMovingImage >::New ( )
static

Method for creation through the object factory.

◆ New() [2/2]

template<class TFixedImage , class TMovingImage >
static Pointer itk::PCAMetric< TFixedImage, TMovingImage >::New ( )
static

Method for creation through the object factory.

◆ PrintSelf() [1/2]

template<class TFixedImage , class TMovingImage >
void itk::PCAMetric< TFixedImage, TMovingImage >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
protected

◆ PrintSelf() [2/2]

template<class TFixedImage , class TMovingImage >
void itk::PCAMetric< TFixedImage, TMovingImage >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
overrideprotected

◆ SampleRandom()

template<class TFixedImage , class TMovingImage >
void itk::PCAMetric< TFixedImage, TMovingImage >::SampleRandom ( const int  n,
const int  m,
std::vector< int > &  numbers 
) const
private

Sample n random numbers from 0..m and add them to the vector.

◆ SetDeNoise()

template<class TFixedImage , class TMovingImage >
virtual void itk::PCAMetric< TFixedImage, TMovingImage >::SetDeNoise ( bool  _arg)
virtual

◆ SetGridSize() [1/2]

template<class TFixedImage , class TMovingImage >
virtual void itk::PCAMetric< TFixedImage, TMovingImage >::SetGridSize ( FixedImageSizeType  _arg)
virtual

◆ SetGridSize() [2/2]

template<class TFixedImage , class TMovingImage >
virtual void itk::PCAMetric< TFixedImage, TMovingImage >::SetGridSize ( FixedImageSizeType  _arg)
virtual

◆ SetNumAdditionalSamplesFixed()

template<class TFixedImage , class TMovingImage >
virtual void itk::PCAMetric< TFixedImage, TMovingImage >::SetNumAdditionalSamplesFixed ( unsigned int  _arg)
virtual

◆ SetNumEigenValues() [1/2]

template<class TFixedImage , class TMovingImage >
virtual void itk::PCAMetric< TFixedImage, TMovingImage >::SetNumEigenValues ( unsigned int  _arg)
virtual

◆ SetNumEigenValues() [2/2]

template<class TFixedImage , class TMovingImage >
virtual void itk::PCAMetric< TFixedImage, TMovingImage >::SetNumEigenValues ( unsigned int  _arg)
virtual

◆ SetNumSamplesLastDimension()

template<class TFixedImage , class TMovingImage >
virtual void itk::PCAMetric< TFixedImage, TMovingImage >::SetNumSamplesLastDimension ( unsigned int  _arg)
virtual

◆ SetReducedDimensionIndex()

template<class TFixedImage , class TMovingImage >
virtual void itk::PCAMetric< TFixedImage, TMovingImage >::SetReducedDimensionIndex ( unsigned int  _arg)
virtual

◆ SetSampleLastDimensionRandomly()

template<class TFixedImage , class TMovingImage >
virtual void itk::PCAMetric< TFixedImage, TMovingImage >::SetSampleLastDimensionRandomly ( bool  _arg)
virtual

Set functions.

◆ SetSubtractMean() [1/2]

template<class TFixedImage , class TMovingImage >
virtual void itk::PCAMetric< TFixedImage, TMovingImage >::SetSubtractMean ( bool  _arg)
virtual

◆ SetSubtractMean() [2/2]

template<class TFixedImage , class TMovingImage >
virtual void itk::PCAMetric< TFixedImage, TMovingImage >::SetSubtractMean ( bool  _arg)
virtual

Set functions.

◆ SetTransformIsStackTransform() [1/2]

template<class TFixedImage , class TMovingImage >
virtual void itk::PCAMetric< TFixedImage, TMovingImage >::SetTransformIsStackTransform ( bool  _arg)
virtual

◆ SetTransformIsStackTransform() [2/2]

template<class TFixedImage , class TMovingImage >
virtual void itk::PCAMetric< TFixedImage, TMovingImage >::SetTransformIsStackTransform ( bool  _arg)
virtual

◆ SetUseDerivativeOfMean()

template<class TFixedImage , class TMovingImage >
virtual void itk::PCAMetric< TFixedImage, TMovingImage >::SetUseDerivativeOfMean ( bool  _arg)
virtual

◆ SetVarNoise()

template<class TFixedImage , class TMovingImage >
virtual void itk::PCAMetric< TFixedImage, TMovingImage >::SetVarNoise ( double  _arg)
virtual

◆ ThreadedComputeDerivative()

template<class TFixedImage , class TMovingImage >
void itk::PCAMetric< TFixedImage, TMovingImage >::ThreadedComputeDerivative ( ThreadIdType  threadID)
protected

◆ ThreadedGetSamples()

template<class TFixedImage , class TMovingImage >
void itk::PCAMetric< TFixedImage, TMovingImage >::ThreadedGetSamples ( ThreadIdType  threadID)
protected

Get value and derivatives for each thread.

Field Documentation

◆ m_Atmm

template<class TFixedImage , class TMovingImage >
MatrixType itk::PCAMetric< TFixedImage, TMovingImage >::m_Atmm
mutableprivate

Definition at line 242 of file itkPCAMetric_F_multithreaded.h.

◆ m_CSv

template<class TFixedImage , class TMovingImage >
DerivativeMatrixType itk::PCAMetric< TFixedImage, TMovingImage >::m_CSv
mutableprivate

Definition at line 244 of file itkPCAMetric_F_multithreaded.h.

◆ m_DeNoise

template<class TFixedImage , class TMovingImage >
bool itk::PCAMetric< TFixedImage, TMovingImage >::m_DeNoise
private

Definition at line 189 of file itkPCAMetric.h.

◆ m_eigenValues

template<class TFixedImage , class TMovingImage >
vnl_vector<double> itk::PCAMetric< TFixedImage, TMovingImage >::m_eigenValues
mutableprotected

Definition at line 174 of file itkPCAMetric.h.

◆ m_fifthEigenVector

template<class TFixedImage , class TMovingImage >
vnl_vector<double> itk::PCAMetric< TFixedImage, TMovingImage >::m_fifthEigenVector
mutableprotected

Definition at line 171 of file itkPCAMetric.h.

◆ m_firstEigenVector

template<class TFixedImage , class TMovingImage >
vnl_vector<double> itk::PCAMetric< TFixedImage, TMovingImage >::m_firstEigenVector
mutableprotected

Definition at line 167 of file itkPCAMetric.h.

◆ m_fourthEigenVector

template<class TFixedImage , class TMovingImage >
vnl_vector<double> itk::PCAMetric< TFixedImage, TMovingImage >::m_fourthEigenVector
mutableprotected

Definition at line 170 of file itkPCAMetric.h.

◆ m_G

template<class TFixedImage , class TMovingImage >
unsigned int itk::PCAMetric< TFixedImage, TMovingImage >::m_G
private

Definition at line 225 of file itkPCAMetric_F_multithreaded.h.

◆ m_GridSize

template<class TFixedImage , class TMovingImage >
FixedImageSizeType itk::PCAMetric< TFixedImage, TMovingImage >::m_GridSize
private

GridSize of B-spline transform.

Definition at line 197 of file itkPCAMetric.h.

◆ m_LastDimIndex

template<class TFixedImage , class TMovingImage >
unsigned int itk::PCAMetric< TFixedImage, TMovingImage >::m_LastDimIndex
private

Definition at line 226 of file itkPCAMetric_F_multithreaded.h.

◆ m_normdCdmu

template<class TFixedImage , class TMovingImage >
vnl_vector<double> itk::PCAMetric< TFixedImage, TMovingImage >::m_normdCdmu
mutableprotected

Definition at line 175 of file itkPCAMetric.h.

◆ m_NumAdditionalSamplesFixed

template<class TFixedImage , class TMovingImage >
unsigned int itk::PCAMetric< TFixedImage, TMovingImage >::m_NumAdditionalSamplesFixed
private

Definition at line 186 of file itkPCAMetric.h.

◆ m_NumberOfSamples

template<class TFixedImage , class TMovingImage >
int itk::PCAMetric< TFixedImage, TMovingImage >::m_NumberOfSamples
mutableprotected

Definition at line 176 of file itkPCAMetric.h.

◆ m_NumEigenValues

template<class TFixedImage , class TMovingImage >
unsigned int itk::PCAMetric< TFixedImage, TMovingImage >::m_NumEigenValues { 6 }
private

Integer to indicate how many eigenvalues you want to use in the metric

Definition at line 203 of file itkPCAMetric.h.

◆ m_NumSamplesLastDimension

template<class TFixedImage , class TMovingImage >
unsigned int itk::PCAMetric< TFixedImage, TMovingImage >::m_NumSamplesLastDimension
private

Definition at line 185 of file itkPCAMetric.h.

◆ m_PCAMetricGetSamplesPerThreadVariables

template<class TFixedImage , class TMovingImage >
std::vector<AlignedPCAMetricGetSamplesPerThreadStruct> itk::PCAMetric< TFixedImage, TMovingImage >::m_PCAMetricGetSamplesPerThreadVariables
mutableprivate

Definition at line 223 of file itkPCAMetric_F_multithreaded.h.

◆ m_PCAMetricThreaderParameters

template<class TFixedImage , class TMovingImage >
PCAMetricMultiThreaderParameterType itk::PCAMetric< TFixedImage, TMovingImage >::m_PCAMetricThreaderParameters
private

Definition at line 207 of file itkPCAMetric_F_multithreaded.h.

◆ m_PixelStartIndex

template<class TFixedImage , class TMovingImage >
std::vector<unsigned int> itk::PCAMetric< TFixedImage, TMovingImage >::m_PixelStartIndex
mutableprivate

Matrices, needed for derivative calculation

Definition at line 241 of file itkPCAMetric_F_multithreaded.h.

◆ m_ReducedDimensionIndex

template<class TFixedImage , class TMovingImage >
unsigned int itk::PCAMetric< TFixedImage, TMovingImage >::m_ReducedDimensionIndex
private

Definition at line 187 of file itkPCAMetric.h.

◆ m_SampleLastDimensionRandomly

template<class TFixedImage , class TMovingImage >
bool itk::PCAMetric< TFixedImage, TMovingImage >::m_SampleLastDimensionRandomly
private

Variables to control random sampling in last dimension.

Definition at line 184 of file itkPCAMetric.h.

◆ m_secondEigenVector

template<class TFixedImage , class TMovingImage >
vnl_vector<double> itk::PCAMetric< TFixedImage, TMovingImage >::m_secondEigenVector
mutableprotected

Definition at line 168 of file itkPCAMetric.h.

◆ m_seventhEigenVector

template<class TFixedImage , class TMovingImage >
vnl_vector<double> itk::PCAMetric< TFixedImage, TMovingImage >::m_seventhEigenVector
mutableprotected

Definition at line 173 of file itkPCAMetric.h.

◆ m_sixthEigenVector

template<class TFixedImage , class TMovingImage >
vnl_vector<double> itk::PCAMetric< TFixedImage, TMovingImage >::m_sixthEigenVector
mutableprotected

Definition at line 172 of file itkPCAMetric.h.

◆ m_SubtractMean

template<class TFixedImage , class TMovingImage >
bool itk::PCAMetric< TFixedImage, TMovingImage >::m_SubtractMean { false }
private

Bool to determine if we want to subtract the mean derivate from the derivative elements.

Definition at line 194 of file itkPCAMetric.h.

◆ m_Sv

template<class TFixedImage , class TMovingImage >
DerivativeMatrixType itk::PCAMetric< TFixedImage, TMovingImage >::m_Sv
mutableprivate

Definition at line 245 of file itkPCAMetric_F_multithreaded.h.

◆ m_thirdEigenVector

template<class TFixedImage , class TMovingImage >
vnl_vector<double> itk::PCAMetric< TFixedImage, TMovingImage >::m_thirdEigenVector
mutableprotected

Definition at line 169 of file itkPCAMetric.h.

◆ m_TransformIsStackTransform

template<class TFixedImage , class TMovingImage >
bool itk::PCAMetric< TFixedImage, TMovingImage >::m_TransformIsStackTransform { false }
private

Bool to indicate if the transform used is a stacktransform. Set by elx files.

Definition at line 200 of file itkPCAMetric.h.

◆ m_UseDerivativeOfMean

template<class TFixedImage , class TMovingImage >
bool itk::PCAMetric< TFixedImage, TMovingImage >::m_UseDerivativeOfMean
private

Definition at line 205 of file itkPCAMetric.h.

◆ m_VarNoise

template<class TFixedImage , class TMovingImage >
double itk::PCAMetric< TFixedImage, TMovingImage >::m_VarNoise
private

Definition at line 191 of file itkPCAMetric.h.

◆ m_vdSdmu_part1

template<class TFixedImage , class TMovingImage >
DerivativeMatrixType itk::PCAMetric< TFixedImage, TMovingImage >::m_vdSdmu_part1
mutableprivate

Definition at line 246 of file itkPCAMetric_F_multithreaded.h.

◆ m_vSAtmm

template<class TFixedImage , class TMovingImage >
DerivativeMatrixType itk::PCAMetric< TFixedImage, TMovingImage >::m_vSAtmm
mutableprivate

Definition at line 243 of file itkPCAMetric_F_multithreaded.h.



Generated on 2023-01-13 for elastix by doxygen 1.9.6 elastix logo