18#ifndef __itkPCAMetric_F_multithreaded_H__
19#define __itkPCAMetric_F_multithreaded_H__
23#include "itkSmoothingRecursiveGaussianImageFilter.h"
25#include "itkNearestNeighborInterpolateImageFunction.h"
26#include "itkExtractImageFilter.h"
30template<
class TFixedImage,
class TMovingImage >
32 public AdvancedImageToImageMetric< TFixedImage, TMovingImage >
53 itkSetMacro( SubtractMean,
bool );
55 itkSetMacro( TransformIsStackTransform,
bool );
56 itkSetMacro( NumEigenValues,
unsigned int );
114 FixedImageType::ImageDimension );
118 MovingImageType::ImageDimension );
144 void PrintSelf( std::ostream & os, Indent indent )
const override;
153 typedef typename itk::ContinuousIndex< CoordinateRepresentationType, FixedImageDimension >
186 PaddedPCAMetricGetSamplesPerThreadStruct );
189 PaddedPCAMetricGetSamplesPerThreadStruct,
190 AlignedPCAMetricGetSamplesPerThreadStruct );
250#ifndef ITK_MANUAL_INSTANTIATION
251#include "itkPCAMetric_F_multithreaded.hxx"
An extension of the ITK ImageToImageMetric. It is the intended base class for all elastix metrics.
BSplineInterpolateImageFunction< MovingImageType, CoordinateRepresentationType, double > BSplineInterpolatorType
Superclass::FixedImageConstPointer FixedImageConstPointer
ThreaderType::WorkUnitInfo ThreadInfoType
Superclass::TransformParametersType TransformParametersType
Superclass::InputPointType InputPointType
Superclass::MovingImageConstPointer MovingImageConstPointer
Superclass::FixedImageMaskPointer FixedImageMaskPointer
InterpolatorType::ContinuousIndexType MovingImageContinuousIndexType
Superclass::GradientImageFilterPointer GradientImageFilterPointer
Superclass::GradientImageFilterType GradientImageFilterType
Superclass::TransformJacobianType TransformJacobianType
FixedArray< double, Self::MovingImageDimension > MovingImageDerivativeScalesType
Superclass::GradientImagePointer GradientImagePointer
Superclass::DerivativeType DerivativeType
Superclass::TransformPointer TransformPointer
ImageSamplerType::OutputVectorContainerPointer ImageSampleContainerPointer
AdvancedTransformType::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
Superclass::OutputPointType OutputPointType
ImageSamplerBase< FixedImageType > ImageSamplerType
Superclass::CoordinateRepresentationType CoordinateRepresentationType
ImageSamplerType::OutputVectorContainerType ImageSampleContainerType
Superclass::InterpolatorPointer InterpolatorPointer
Superclass::MovingImageMaskPointer MovingImageMaskPointer
Superclass::FixedImageType FixedImageType
TransformType::InputPointType FixedImagePointType
ImageSamplerType::Pointer ImageSamplerPointer
Superclass::MovingImageMaskType MovingImageMaskType
Superclass::GradientPixelType GradientPixelType
Superclass::MeasureType MeasureType
MovingImageType::IndexType MovingImageIndexType
MovingImageType::RegionType MovingImageRegionType
FixedImageLimiterType::OutputType FixedImageLimiterOutputType
FixedImageIndexType::IndexValueType FixedImageIndexValueType
Superclass::MovingImagePixelType MovingImagePixelType
MovingImageLimiterType::OutputType MovingImageLimiterOutputType
GradientImageFilter< MovingImageType, RealType, RealType > CentralDifferenceGradientFilterType
LimiterFunctionBase< RealType, MovingImageDimension > MovingImageLimiterType
BSplineInterpolatorType::CovariantVectorType MovingImageDerivativeType
Superclass::FixedImageMaskType FixedImageMaskType
Superclass::GradientImageType GradientImageType
FixedImageType::PixelType FixedImagePixelType
Superclass::InterpolatorType InterpolatorType
TransformType::OutputPointType MovingImagePointType
FixedImageType::IndexType FixedImageIndexType
Superclass::TransformType TransformType
Superclass::MovingImageType MovingImageType
LimiterFunctionBase< RealType, FixedImageDimension > FixedImageLimiterType
itk::PlatformMultiThreader ThreaderType
Superclass::RealType RealType
Superclass::FixedImageRegionType FixedImageRegionType
Superclass::ParametersType ParametersType
Superclass::TransformPointer TransformPointer
Superclass::FixedImageLimiterType FixedImageLimiterType
void Initialize(void) override
Superclass::MovingImagePointType MovingImagePointType
unsigned int m_NumEigenValues
void GetValueAndDerivativeSingleThreaded(const TransformParametersType ¶meters, MeasureType &Value, DerivativeType &Derivative) const
Superclass::InterpolatorPointer InterpolatorPointer
void AfterThreadedGetSamples(MeasureType &value) const
void PrintSelf(std::ostream &os, Indent indent) const override
Superclass::DerivativeType DerivativeType
std::vector< unsigned int > m_PixelStartIndex
itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension)
unsigned int m_LastDimIndex
Superclass::MovingImageLimiterOutputType MovingImageLimiterOutputType
Superclass::ImageSamplerType ImageSamplerType
PCAMetricMultiThreaderParameterType m_PCAMetricThreaderParameters
itkAlignedTypedef(ITK_CACHE_LINE_ALIGNMENT, PaddedPCAMetricGetSamplesPerThreadStruct, AlignedPCAMetricGetSamplesPerThreadStruct)
Superclass::MovingImageContinuousIndexType MovingImageContinuousIndexType
Superclass::GradientImagePointer GradientImagePointer
void LaunchGetSamplesThreaderCallback(void) const
Superclass::GradientImageFilterPointer GradientImageFilterPointer
void GetValueAndDerivative(const TransformParametersType ¶meters, MeasureType &Value, DerivativeType &Derivative) const override
Superclass::ImageSamplerPointer ImageSamplerPointer
MeasureType GetValue(const TransformParametersType ¶meters) const override
void EvaluateTransformJacobianInnerProduct(const TransformJacobianType &jacobian, const MovingImageDerivativeType &movingImageDerivative, DerivativeType &imageJacobian) const override
itk::ContinuousIndex< CoordinateRepresentationType, FixedImageDimension > FixedImageContinuousIndexType
DerivativeMatrixType m_Sv
Superclass::MovingImageType MovingImageType
Superclass::MovingImagePixelType MovingImagePixelType
AlignedPCAMetricGetSamplesPerThreadStruct * m_PCAMetricGetSamplesPerThreadVariables
ThreadIdType m_PCAMetricGetSamplesPerThreadVariablesSize
Superclass::FixedImageConstPointer FixedImageConstPointer
Superclass::CentralDifferenceGradientFilterType CentralDifferenceGradientFilterType
FixedImageSizeType m_GridSize
Superclass::MovingImageIndexType MovingImageIndexType
Superclass::OutputPointType OutputPointType
void InitializeThreadingParameters(void) const override
Superclass::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
Superclass::MeasureType MeasureType
Superclass::InputPointType InputPointType
Superclass::FixedImageMaskPointer FixedImageMaskPointer
Superclass::MovingImageMaskType MovingImageMaskType
bool m_TransformIsStackTransform
Superclass::ImageSampleContainerType ImageSampleContainerType
Superclass::MovingImageRegionType MovingImageRegionType
DerivativeMatrixType m_vSAtmm
Superclass::GradientPixelType GradientPixelType
void operator=(const Self &)
Superclass::TransformJacobianType TransformJacobianType
Superclass::BSplineInterpolatorType BSplineInterpolatorType
Superclass::ThreadInfoType ThreadInfoType
Superclass::MovingImageDerivativeType MovingImageDerivativeType
Superclass::RealType RealType
AdvancedImageToImageMetric< TFixedImage, TMovingImage > Superclass
Superclass::MovingImageDerivativeScalesType MovingImageDerivativeScalesType
Superclass::MovingImageConstPointer MovingImageConstPointer
Superclass::CoordinateRepresentationType CoordinateRepresentationType
DerivativeMatrixType m_CSv
void LaunchComputeDerivativeThreaderCallback(void) const
itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension)
Superclass::FixedImageLimiterOutputType FixedImageLimiterOutputType
Superclass::GradientImageType GradientImageType
Superclass::InterpolatorType InterpolatorType
Superclass::ParametersType ParametersType
Superclass::FixedImageRegionType FixedImageRegionType
void ThreadedComputeDerivative(ThreadIdType threadID)
Superclass::GradientImageFilterType GradientImageFilterType
Superclass::FixedImagePointType FixedImagePointType
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION GetSamplesThreaderCallback(void *arg)
SmartPointer< Self > Pointer
void AfterThreadedComputeDerivative(DerivativeType &derivative) const
vnl_matrix< DerivativeValueType > DerivativeMatrixType
Superclass::MovingImageLimiterType MovingImageLimiterType
Superclass::FixedImagePixelType FixedImagePixelType
Superclass::MovingImageMaskPointer MovingImageMaskPointer
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION ComputeDerivativeThreaderCallback(void *arg)
Superclass::FixedImageIndexType FixedImageIndexType
Superclass::FixedImageMaskType FixedImageMaskType
Superclass::ImageSampleContainerPointer ImageSampleContainerPointer
FixedImageRegionType::SizeType FixedImageSizeType
void ThreadedGetSamples(ThreadIdType threadID)
itkPadStruct(ITK_CACHE_LINE_ALIGNMENT, PCAMetricGetSamplesPerThreadStruct, PaddedPCAMetricGetSamplesPerThreadStruct)
Superclass::TransformParametersType TransformParametersType
DerivativeMatrixType m_vdSdmu_part1
DerivativeType::ValueType DerivativeValueType
Superclass::FixedImageIndexValueType FixedImageIndexValueType
Superclass::ThreaderType ThreaderType
SmartPointer< const Self > ConstPointer
Superclass::TransformType TransformType
void GetDerivative(const TransformParametersType ¶meters, DerivativeType &derivative) const override
vnl_matrix< RealType > MatrixType
Superclass::FixedImageType FixedImageType
SizeValueType st_NumberOfPixelsCounted
DerivativeType st_Derivative
std::vector< FixedImagePointType > st_ApprovedSamples