Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages |
#include <itkComputeDisplacementDistribution.h>
This is a helper class for the automatic parameter estimation of the ASGD optimizer.
More specifically this class computes the Jacobian terms related to the automatic parameter estimation for the adaptive stochastic gradient descent optimizer. Details can be found in the TMI paper
[1] Y. Qiao, B. van Lew, B.P.F. Lelieveldt and M. Staring "Fast Automatic Step Size Estimation for Gradient Descent Optimization of Image Registration," IEEE Transactions on Medical Imaging, vol. 35, no. 2, pp. 391 - 403, February 2016. http://elastix.isi.uu.nl/marius/publications/2016_j_TMIa.php
Definition at line 46 of file itkComputeDisplacementDistribution.h.
Data Structures | |
struct | ComputePerThreadStruct |
struct | MultiThreaderParameterType |
Public Types | |
typedef SmartPointer< const Self > | ConstPointer |
typedef Superclass::DerivativeType | DerivativeType |
typedef FixedImageMaskType::ConstPointer | FixedImageMaskConstPointer |
typedef FixedImageMaskType::Pointer | FixedImageMaskPointer |
typedef SpatialObject< itkGetStaticConstMacro(FixedImageDimension) > | FixedImageMaskType |
typedef FixedImageType::PixelType | FixedImagePixelType |
typedef FixedImageType::RegionType | FixedImageRegionType |
typedef TFixedImage | FixedImageType |
typedef TransformType::NonZeroJacobianIndicesType | NonZeroJacobianIndicesType |
typedef Superclass::ParametersType | ParametersType |
typedef SmartPointer< Self > | Pointer |
typedef Superclass::ScalesType | ScalesType |
typedef ComputeDisplacementDistribution | Self |
typedef ScaledSingleValuedNonLinearOptimizer | Superclass |
typedef TransformType::Pointer | TransformPointer |
typedef TTransform | TransformType |
Public Types inherited from itk::ScaledSingleValuedNonLinearOptimizer | |
typedef SmartPointer< const Self > | ConstPointer |
typedef Superclass::CostFunctionType | CostFunctionType |
typedef Superclass::DerivativeType | DerivativeType |
typedef Superclass::MeasureType | MeasureType |
typedef Superclass::ParametersType | ParametersType |
typedef SmartPointer< Self > | Pointer |
typedef ScaledCostFunctionType::Pointer | ScaledCostFunctionPointer |
typedef ScaledSingleValuedCostFunction | ScaledCostFunctionType |
typedef NonLinearOptimizer::ScalesType | ScalesType |
typedef ScaledSingleValuedNonLinearOptimizer | Self |
typedef SingleValuedNonLinearOptimizer | Superclass |
Public Member Functions | |
virtual void | AfterThreadedCompute (double &jacg, double &maxJJ) |
virtual void | BeforeThreadedCompute (const ParametersType &mu) |
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) |
virtual void | ComputeUsingSearchDirection (const ParametersType &mu, double &jacg, double &maxJJ, std::string methods) |
virtual const char * | GetClassName () const |
virtual const FixedImageMaskType * | GetFixedImageMask () |
virtual const FixedImageRegionType & | GetFixedImageRegion () |
itkStaticConstMacro (FixedImageDimension, unsigned int, TFixedImage::ImageDimension) | |
virtual void | SetFixedImage (const FixedImageType *_arg) |
virtual void | SetFixedImageMask (const FixedImageMaskType *_arg) |
virtual void | SetFixedImageMask (FixedImageMaskType *_arg) |
void | SetFixedImageRegion (const FixedImageRegionType ®ion) |
virtual void | SetNumberOfJacobianMeasurements (SizeValueType _arg) |
void | SetNumberOfWorkUnits (ThreadIdType numberOfThreads) |
virtual void | SetTransform (TransformType *_arg) |
Public Member Functions inherited from itk::ScaledSingleValuedNonLinearOptimizer | |
virtual const char * | GetClassName () const |
const ParametersType & | GetCurrentPosition (void) const override |
virtual bool | GetMaximize () const |
virtual const ScaledCostFunctionType * | GetScaledCostFunction () |
virtual const ParametersType & | GetScaledCurrentPosition () |
bool | GetUseScales (void) const |
virtual void | InitializeScales (void) |
virtual void | MaximizeOff () |
virtual void | MaximizeOn () |
void | SetCostFunction (CostFunctionType *costFunction) override |
virtual void | SetMaximize (bool _arg) |
virtual void | SetUseScales (bool arg) |
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::ScaledSingleValuedNonLinearOptimizer | |
static Pointer | New () |
Protected Member Functions | |
ComputeDisplacementDistribution () | |
virtual void | InitializeThreadingParameters (void) |
itkAlignedTypedef (ITK_CACHE_LINE_ALIGNMENT, PaddedComputePerThreadStruct, AlignedComputePerThreadStruct) | |
itkPadStruct (ITK_CACHE_LINE_ALIGNMENT, ComputePerThreadStruct, PaddedComputePerThreadStruct) | |
void | LaunchComputeThreaderCallback (void) const |
virtual void | SampleFixedImageForJacobianTerms (ImageSampleContainerPointer &sampleContainer) |
virtual void | ThreadedCompute (ThreadIdType threadID) |
~ComputeDisplacementDistribution () override | |
Protected Member Functions inherited from itk::ScaledSingleValuedNonLinearOptimizer | |
virtual void | GetScaledDerivative (const ParametersType ¶meters, DerivativeType &derivative) const |
virtual MeasureType | GetScaledValue (const ParametersType ¶meters) const |
virtual void | GetScaledValueAndDerivative (const ParametersType ¶meters, MeasureType &value, DerivativeType &derivative) const |
void | PrintSelf (std::ostream &os, Indent indent) const override |
ScaledSingleValuedNonLinearOptimizer () | |
void | SetCurrentPosition (const ParametersType ¶m) override |
virtual void | SetScaledCurrentPosition (const ParametersType ¶meters) |
~ScaledSingleValuedNonLinearOptimizer () override | |
Static Protected Member Functions | |
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION | ComputeThreaderCallback (void *arg) |
Protected Attributes | |
AlignedComputePerThreadStruct * | m_ComputePerThreadVariables |
ThreadIdType | m_ComputePerThreadVariablesSize |
ScaledSingleValuedCostFunction::Pointer | m_CostFunction |
DerivativeType | m_ExactGradient |
FixedImageType::ConstPointer | m_FixedImage |
FixedImageMaskConstPointer | m_FixedImageMask |
FixedImageRegionType | m_FixedImageRegion |
SizeValueType | m_NumberOfJacobianMeasurements |
SizeValueType | m_NumberOfParameters |
SizeValueType | m_NumberOfPixelsCounted |
ImageSampleContainerPointer | m_SampleContainer |
ThreaderType::Pointer | m_Threader |
MultiThreaderParameterType | m_ThreaderParameters |
TransformPointer | m_Transform |
bool | m_UseMultiThread |
Protected Attributes inherited from itk::ScaledSingleValuedNonLinearOptimizer | |
ScaledCostFunctionPointer | m_ScaledCostFunction |
ParametersType | m_ScaledCurrentPosition |
Private Member Functions | |
ComputeDisplacementDistribution (const Self &) | |
void | operator= (const Self &) |
typedef SmartPointer< const Self > itk::ComputeDisplacementDistribution< TFixedImage, TTransform >::ConstPointer |
Definition at line 55 of file itkComputeDisplacementDistribution.h.
|
protected |
Definition at line 175 of file itkComputeDisplacementDistribution.h.
typedef Superclass::DerivativeType itk::ComputeDisplacementDistribution< TFixedImage, TTransform >::DerivativeType |
Definition at line 71 of file itkComputeDisplacementDistribution.h.
|
protected |
Definition at line 152 of file itkComputeDisplacementDistribution.h.
typedef FixedImageMaskType::ConstPointer itk::ComputeDisplacementDistribution< TFixedImage, TTransform >::FixedImageMaskConstPointer |
Definition at line 81 of file itkComputeDisplacementDistribution.h.
typedef FixedImageMaskType::Pointer itk::ComputeDisplacementDistribution< TFixedImage, TTransform >::FixedImageMaskPointer |
Definition at line 80 of file itkComputeDisplacementDistribution.h.
typedef SpatialObject< itkGetStaticConstMacro( FixedImageDimension ) > itk::ComputeDisplacementDistribution< TFixedImage, TTransform >::FixedImageMaskType |
Definition at line 79 of file itkComputeDisplacementDistribution.h.
typedef FixedImageType::PixelType itk::ComputeDisplacementDistribution< TFixedImage, TTransform >::FixedImagePixelType |
Definition at line 66 of file itkComputeDisplacementDistribution.h.
|
protected |
Definition at line 153 of file itkComputeDisplacementDistribution.h.
typedef FixedImageType::RegionType itk::ComputeDisplacementDistribution< TFixedImage, TTransform >::FixedImageRegionType |
Definition at line 69 of file itkComputeDisplacementDistribution.h.
typedef TFixedImage itk::ComputeDisplacementDistribution< TFixedImage, TTransform >::FixedImageType |
typedef
Definition at line 65 of file itkComputeDisplacementDistribution.h.
|
protected |
Definition at line 162 of file itkComputeDisplacementDistribution.h.
|
protected |
Definition at line 161 of file itkComputeDisplacementDistribution.h.
|
protected |
Definition at line 168 of file itkComputeDisplacementDistribution.h.
|
protected |
Definition at line 167 of file itkComputeDisplacementDistribution.h.
|
protected |
Definition at line 165 of file itkComputeDisplacementDistribution.h.
|
protected |
Definition at line 164 of file itkComputeDisplacementDistribution.h.
|
protected |
Definition at line 171 of file itkComputeDisplacementDistribution.h.
|
protected |
Definition at line 170 of file itkComputeDisplacementDistribution.h.
|
protected |
Definition at line 159 of file itkComputeDisplacementDistribution.h.
|
protected |
Samplers.
Definition at line 158 of file itkComputeDisplacementDistribution.h.
|
protected |
Definition at line 154 of file itkComputeDisplacementDistribution.h.
|
protected |
Definition at line 155 of file itkComputeDisplacementDistribution.h.
typedef TransformType::NonZeroJacobianIndicesType itk::ComputeDisplacementDistribution< TFixedImage, TTransform >::NonZeroJacobianIndicesType |
Definition at line 82 of file itkComputeDisplacementDistribution.h.
|
protected |
Definition at line 176 of file itkComputeDisplacementDistribution.h.
typedef Superclass::ParametersType itk::ComputeDisplacementDistribution< TFixedImage, TTransform >::ParametersType |
Definition at line 70 of file itkComputeDisplacementDistribution.h.
typedef SmartPointer< Self > itk::ComputeDisplacementDistribution< TFixedImage, TTransform >::Pointer |
Definition at line 54 of file itkComputeDisplacementDistribution.h.
typedef Superclass::ScalesType itk::ComputeDisplacementDistribution< TFixedImage, TTransform >::ScalesType |
Definition at line 72 of file itkComputeDisplacementDistribution.h.
typedef ComputeDisplacementDistribution itk::ComputeDisplacementDistribution< TFixedImage, TTransform >::Self |
Standard ITK.
Definition at line 52 of file itkComputeDisplacementDistribution.h.
typedef ScaledSingleValuedNonLinearOptimizer itk::ComputeDisplacementDistribution< TFixedImage, TTransform >::Superclass |
Definition at line 53 of file itkComputeDisplacementDistribution.h.
|
protected |
Typedefs for multi-threading.
Definition at line 139 of file itkComputeDisplacementDistribution.h.
|
protected |
Definition at line 140 of file itkComputeDisplacementDistribution.h.
|
protected |
Typedefs for support of sparse Jacobians and AdvancedTransforms.
Definition at line 174 of file itkComputeDisplacementDistribution.h.
typedef TransformType::Pointer itk::ComputeDisplacementDistribution< TFixedImage, TTransform >::TransformPointer |
Definition at line 68 of file itkComputeDisplacementDistribution.h.
typedef TTransform itk::ComputeDisplacementDistribution< TFixedImage, TTransform >::TransformType |
Definition at line 67 of file itkComputeDisplacementDistribution.h.
|
protected |
|
overrideprotected |
|
private |
|
virtual |
|
virtual |
|
virtual |
The main function that performs the multi-threaded computation.
Reimplemented in itk::ComputePreconditionerUsingDisplacementDistribution< TFixedImage, TTransform >.
|
virtual |
The main function that performs the single-threaded computation.
|
staticprotected |
Compute threader callback function.
|
virtual |
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::ScaledSingleValuedNonLinearOptimizer.
Reimplemented in itk::ComputePreconditionerUsingDisplacementDistribution< TFixedImage, TTransform >.
|
virtual |
|
virtual |
Get the region over which the metric will be computed.
|
protectedvirtual |
Initialize some multi-threading related parameters.
|
protected |
|
protected |
itk::ComputeDisplacementDistribution< TFixedImage, TTransform >::itkStaticConstMacro | ( | FixedImageDimension | , |
unsigned int | , | ||
TFixedImage::ImageDimension | |||
) |
Type for the mask of the fixed image. Only pixels that are "inside" this mask will be considered for the computation of the Jacobian terms.
|
protected |
Launch MultiThread Compute.
|
static |
Method for creation through the object factory.
|
private |
|
protectedvirtual |
Sample the fixed image to compute the Jacobian terms.
|
virtual |
Set the fixed image.
|
virtual |
|
virtual |
Set/Get the fixed image mask.
|
inline |
Set the region over which the metric will be computed.
Definition at line 99 of file itkComputeDisplacementDistribution.h.
|
virtual |
Set some parameters.
|
inline |
Set the number of threads.
Definition at line 123 of file itkComputeDisplacementDistribution.h.
|
virtual |
Set the transform.
|
inlineprotectedvirtual |
The threaded implementation of Compute().
|
mutableprotected |
Definition at line 215 of file itkComputeDisplacementDistribution.h.
|
mutableprotected |
Definition at line 216 of file itkComputeDisplacementDistribution.h.
|
protected |
Definition at line 146 of file itkComputeDisplacementDistribution.h.
|
protected |
Definition at line 148 of file itkComputeDisplacementDistribution.h.
|
protected |
Definition at line 142 of file itkComputeDisplacementDistribution.h.
|
protected |
Definition at line 144 of file itkComputeDisplacementDistribution.h.
|
protected |
Definition at line 143 of file itkComputeDisplacementDistribution.h.
|
protected |
Definition at line 147 of file itkComputeDisplacementDistribution.h.
|
protected |
Definition at line 149 of file itkComputeDisplacementDistribution.h.
|
protected |
Definition at line 218 of file itkComputeDisplacementDistribution.h.
|
protected |
Definition at line 220 of file itkComputeDisplacementDistribution.h.
|
protected |
Definition at line 150 of file itkComputeDisplacementDistribution.h.
|
mutableprotected |
Definition at line 201 of file itkComputeDisplacementDistribution.h.
|
protected |
Definition at line 145 of file itkComputeDisplacementDistribution.h.
|
protected |
Definition at line 219 of file itkComputeDisplacementDistribution.h.
Generated on 1667476801 for elastix by 1.9.4 |