18#ifndef __itkComputeDisplacementDistribution_h
19#define __itkComputeDisplacementDistribution_h
27#include "itkPlatformMultiThreader.h"
45template<
class TFixedImage,
class TTransform >
78 TFixedImage::ImageDimension );
96 itkSetMacro( NumberOfJacobianMeasurements, SizeValueType );
113 double & jacg,
double & maxJJ, std::string method );
117 double & jacg,
double & maxJJ, std::string method );
120 double & jacg,
double & maxJJ, std::string methods );
125 this->
m_Threader->SetNumberOfWorkUnits( numberOfThreads );
212 PaddedComputePerThreadStruct );
214 AlignedComputePerThreadStruct );
231#ifndef ITK_MANUAL_INSTANTIATION
232#include "itkComputeDisplacementDistribution.hxx"
This is a helper class for the automatic parameter estimation of the ASGD optimizer.
JacobianType TransformJacobianType
TransformType::Pointer TransformPointer
ScaledSingleValuedNonLinearOptimizer Superclass
FixedImageMaskType::Pointer FixedImageMaskPointer
TransformPointer m_Transform
SizeValueType m_NumberOfPixelsCounted
TransformType::NumberOfParametersType NumberOfParametersType
virtual void Compute(const ParametersType &mu, double &jacg, double &maxJJ, std::string method)
virtual void ComputeSingleThreaded(const ParametersType &mu, double &jacg, double &maxJJ, std::string method)
ThreadIdType m_ComputePerThreadVariablesSize
ImageSampleContainerType::Pointer ImageSampleContainerPointer
FixedImageType::PointType FixedImagePointType
ComputeDisplacementDistribution(const Self &)
TFixedImage FixedImageType
~ComputeDisplacementDistribution() override
TransformType::JacobianType JacobianType
AlignedComputePerThreadStruct * m_ComputePerThreadVariables
SpatialObject< itkGetStaticConstMacro(FixedImageDimension) > FixedImageMaskType
itkPadStruct(ITK_CACHE_LINE_ALIGNMENT, ComputePerThreadStruct, PaddedComputePerThreadStruct)
virtual void ThreadedCompute(ThreadIdType threadID)
FixedImageMaskConstPointer m_FixedImageMask
itkStaticConstMacro(FixedImageDimension, unsigned int, TFixedImage::ImageDimension)
FixedImageRegionType m_FixedImageRegion
ComputeDisplacementDistribution()
FixedImageType::ConstPointer m_FixedImage
virtual void SampleFixedImageForJacobianTerms(ImageSampleContainerPointer &sampleContainer)
virtual void ComputeUsingSearchDirection(const ParametersType &mu, double &jacg, double &maxJJ, std::string methods)
ImageGridSampler< FixedImageType > ImageGridSamplerType
itkAlignedTypedef(ITK_CACHE_LINE_ALIGNMENT, PaddedComputePerThreadStruct, AlignedComputePerThreadStruct)
FixedImageType::PixelType FixedImagePixelType
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION ComputeThreaderCallback(void *arg)
ComputeDisplacementDistribution Self
virtual void AfterThreadedCompute(double &jacg, double &maxJJ)
SizeValueType m_NumberOfParameters
void SetFixedImageRegion(const FixedImageRegionType ®ion)
ScaledSingleValuedCostFunction::Pointer m_CostFunction
void operator=(const Self &)
ImageSamplerBaseType::Pointer ImageSamplerBasePointer
ImageGridSamplerType::Pointer ImageGridSamplerPointer
ImageRandomSamplerBaseType::Pointer ImageRandomSamplerBasePointer
FixedImageType::RegionType FixedImageRegionType
ImageSampleContainerPointer m_SampleContainer
SizeValueType m_NumberOfJacobianMeasurements
ImageFullSampler< FixedImageType > ImageFullSamplerType
SmartPointer< const Self > ConstPointer
Superclass::DerivativeType DerivativeType
void SetNumberOfWorkUnits(ThreadIdType numberOfThreads)
DerivativeType m_ExactGradient
FixedImageMaskType::ConstPointer FixedImageMaskConstPointer
Superclass::ParametersType ParametersType
void LaunchComputeThreaderCallback(void) const
itk::PlatformMultiThreader ThreaderType
Superclass::ScalesType ScalesType
ImageGridSamplerType::ImageSampleContainerType ImageSampleContainerType
ThreaderType::Pointer m_Threader
JacobianType::ValueType JacobianValueType
TransformType::NonZeroJacobianIndicesType NonZeroJacobianIndicesType
MultiThreaderParameterType m_ThreaderParameters
TransformType::ScalarType CoordinateRepresentationType
ImageSamplerBase< FixedImageType > ImageSamplerBaseType
FixedImageType::IndexType FixedImageIndexType
SmartPointer< Self > Pointer
virtual void BeforeThreadedCompute(const ParametersType &mu)
ThreaderType::WorkUnitInfo ThreadInfoType
ImageFullSamplerType::Pointer ImageFullSamplerPointer
virtual void InitializeThreadingParameters(void)
ImageRandomSamplerBase< FixedImageType > ImageRandomSamplerBaseType
Samples all voxels in the InputImageRegion.
Samples image voxels on a regular grid.
Superclass::ImageSampleContainerType ImageSampleContainerType
This class is a base class for any image sampler that randomly picks samples.
This class is a base class for any image sampler.
NonLinearOptimizer::ScalesType ScalesType
Superclass::ParametersType ParametersType
Superclass::DerivativeType DerivativeType
double st_DisplacementSquared
SizeValueType st_NumberOfPixelsCounted