#include <itkRegistrationParameterScalesFromJacobian.h>
Implements a registration helper class for estimating scales of transform parameters from Jacobian norms.
Its input includes the fixed/moving images and transform objects, which can be obtained from the metric object.
The scale of a parameter is estimated from the averaged squared norm of the Jacobian w.r.t the parameter. The averaging is done over a sampling of the image domain. The sampling by default is a uniform random distribution.
Definition at line 42 of file itkRegistrationParameterScalesFromJacobian.h.
Public Types | |
using | ConstPointer = SmartPointer<const Self> |
using | FixedTransformType |
using | JacobianType |
using | MovingTransformType |
using | Pointer = SmartPointer<Self> |
using | Self = RegistrationParameterScalesFromJacobian |
using | Superclass = RegistrationParameterScalesEstimator<TMetric> |
using | VirtualImageConstPointer |
using | VirtualIndexType |
using | VirtualPointType |
![]() | |
using | ConstPointer = SmartPointer<const Self> |
using | FixedTransformConstPointer = typename FixedTransformType::ConstPointer |
using | FixedTransformType = typename MetricType::FixedTransformType |
using | JacobianType = typename TMetric::JacobianType |
using | MetricConstPointer = typename MetricType::ConstPointer |
using | MetricPointer = typename MetricType::Pointer |
using | MetricType = TMetric |
using | MovingTransformConstPointer = typename MovingTransformType::ConstPointer |
using | MovingTransformType = typename MetricType::MovingTransformType |
using | Pointer = SmartPointer<Self> |
using | SamplePointContainerType = std::vector<VirtualPointType> |
using | SamplingStrategyType = SamplingStrategyEnum |
using | Self = RegistrationParameterScalesEstimator |
using | Superclass = OptimizerParameterScalesEstimatorTemplate<typename TMetric::ParametersValueType> |
using | VirtualImageConstPointer = typename TMetric::VirtualImageConstPointer |
using | VirtualImagePointer = typename TMetric::VirtualImagePointer |
using | VirtualImageType = typename TMetric::VirtualImageType |
using | VirtualIndexType = typename TMetric::VirtualIndexType |
using | VirtualPointSetPointer = typename TMetric::VirtualPointSetPointer |
using | VirtualPointSetType = typename TMetric::VirtualPointSetType |
using | VirtualPointType = typename TMetric::VirtualPointType |
using | VirtualRegionType = typename TMetric::VirtualRegionType |
using | VirtualSizeType = typename TMetric::VirtualSizeType |
using | VirtualSpacingType = typename TMetric::VirtualSpacingType |
![]() | |
using | ConstPointer |
using | FloatType |
using | ParametersType |
using | Pointer |
using | ScalesType |
using | Self |
using | Superclass |
![]() | |
using | ConstPointer = SmartPointer<const Self> |
using | Pointer = SmartPointer<Self> |
using | Self = Object |
using | Superclass = LightObject |
![]() | |
using | ConstPointer = SmartPointer<const Self> |
using | Pointer = SmartPointer<Self> |
using | Self = LightObject |
Public Member Functions | |
virtual::itk::LightObject::Pointer | CreateAnother () const |
void | EstimateLocalStepScales (const ParametersType &step, ScalesType &localStepScales) override |
void | EstimateScales (ScalesType ¶meterScales) override |
FloatType | EstimateStepScale (const ParametersType &step) override |
const char * | GetNameOfClass () const override |
![]() | |
FloatType | EstimateMaximumStepSize () override |
virtual void | SetScalesSamplingStrategy () |
virtual void | SetStepScaleSamplingStrategy () |
virtual void | SetMetric (MetricType *_arg) |
virtual const MetricType * | GetMetric () const |
virtual void | SetTransformForward (bool _arg) |
virtual bool | GetTransformForward () const |
virtual void | TransformForwardOn () |
virtual void | TransformForwardOff () |
virtual void | SetVirtualDomainPointSet (const VirtualPointSetType *_arg) |
virtual const VirtualPointSetType * | GetVirtualDomainPointSet () const |
virtual void | SetCentralRegionRadius (IndexValueType _arg) |
virtual IndexValueType | GetCentralRegionRadius () const |
![]() | |
unsigned long | AddObserver (const EventObject &event, Command *cmd) const |
unsigned long | AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const |
virtual void | DebugOff () const |
virtual void | DebugOn () const |
Command * | GetCommand (unsigned long tag) |
bool | GetDebug () const |
MetaDataDictionary & | GetMetaDataDictionary () |
const MetaDataDictionary & | GetMetaDataDictionary () const |
virtual ModifiedTimeType | GetMTime () const |
virtual const TimeStamp & | GetTimeStamp () const |
bool | HasObserver (const EventObject &event) const |
void | InvokeEvent (const EventObject &) |
void | InvokeEvent (const EventObject &) const |
virtual void | Modified () const |
void | Register () const override |
void | RemoveAllObservers () |
void | RemoveObserver (unsigned long tag) const |
void | SetDebug (bool debugFlag) const |
void | SetReferenceCount (int) override |
void | UnRegister () const noexcept override |
void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
void | SetMetaDataDictionary (MetaDataDictionary &&rrhs) |
virtual void | SetObjectName (std::string _arg) |
virtual const std::string & | GetObjectName () const |
![]() | |
Pointer | Clone () const |
virtual void | Delete () |
virtual int | GetReferenceCount () const |
void | Print (std::ostream &os, Indent indent=0) const |
Static Public Member Functions | |
static Pointer | New () |
![]() | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool val) |
![]() | |
static void | BreakOnError () |
static Pointer | New () |
Additional Inherited Members | |
![]() | |
static constexpr SizeValueType | FixedDimension = TMetric::FixedDimension |
static constexpr SizeValueType | MovingDimension = TMetric::MovingDimension |
static constexpr SizeValueType | VirtualDimension = TMetric::VirtualDimension |
![]() | |
IndexValueType | m_CentralRegionRadius {} |
MetricPointer | m_Metric {} |
SizeValueType | m_NumberOfRandomSamples {} |
SamplePointContainerType | m_SamplePoints {} |
TimeStamp | m_SamplingTime {} |
VirtualPointSetType::ConstPointer | m_VirtualDomainPointSet {} |
![]() | |
std::atomic< int > | m_ReferenceCount {} |
![]() | |
static constexpr SizeValueType | SizeOfSmallDomain = 1000 |
using itk::RegistrationParameterScalesFromJacobian< TMetric >::ConstPointer = SmartPointer<const Self> |
Definition at line 51 of file itkRegistrationParameterScalesFromJacobian.h.
using itk::RegistrationParameterScalesEstimator< TMetric >::FixedTransformType |
Type of the transform to initialize
Definition at line 109 of file itkRegistrationParameterScalesEstimator.h.
using itk::RegistrationParameterScalesEstimator< TMetric >::JacobianType |
Type of Jacobian of transform.
Definition at line 148 of file itkRegistrationParameterScalesEstimator.h.
using itk::RegistrationParameterScalesEstimator< TMetric >::MovingTransformType |
Definition at line 112 of file itkRegistrationParameterScalesEstimator.h.
using itk::RegistrationParameterScalesFromJacobian< TMetric >::Pointer = SmartPointer<Self> |
Definition at line 50 of file itkRegistrationParameterScalesFromJacobian.h.
using itk::RegistrationParameterScalesFromJacobian< TMetric >::Self = RegistrationParameterScalesFromJacobian |
Standard class type aliases.
Definition at line 48 of file itkRegistrationParameterScalesFromJacobian.h.
using itk::RegistrationParameterScalesFromJacobian< TMetric >::Superclass = RegistrationParameterScalesEstimator<TMetric> |
Definition at line 49 of file itkRegistrationParameterScalesFromJacobian.h.
using itk::RegistrationParameterScalesEstimator< TMetric >::VirtualImageConstPointer |
Definition at line 121 of file itkRegistrationParameterScalesEstimator.h.
using itk::RegistrationParameterScalesEstimator< TMetric >::VirtualIndexType |
Definition at line 127 of file itkRegistrationParameterScalesEstimator.h.
using itk::RegistrationParameterScalesEstimator< TMetric >::VirtualPointType |
Definition at line 126 of file itkRegistrationParameterScalesEstimator.h.
|
protecteddefault |
Referenced by GetNameOfClass().
|
overrideprotecteddefault |
|
protected |
Compute the step scales for samples, i.e. the impacts on each sampled voxel from a change on the transform.
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::Object.
|
overridevirtual |
Estimate the scales of local steps. For each voxel, computes the impact of a step on its location as in EstimateStepScale(). Then this impact is attributed to the corresponding local parameters.
Implements itk::RegistrationParameterScalesEstimator< TMetric >.
|
overridevirtual |
Estimate parameter scales from average Jacobian norms. For each parameter, compute the squared norm of its transform Jacobian, then average the squared norm over the sample points. This average is used as the scale of this parameter.
Implements itk::RegistrationParameterScalesEstimator< TMetric >.
|
overridevirtual |
Estimate the scale for \(\Delta p\), the step of change on parameters. The step scale describes the impact of \(\Delta p\) on the transform.
Let us denote the transform by
\[ T(x, p) = T(x, p_0 + t * \Delta p) \]
where \(x\) is the coordinates of a voxel, \(p = p_0+t*\Delta p\) is the transform parameters, and \(t\) is the step factor.
At a specific voxel at \(x\), the step scale w.r.t. \(\Delta p\) is defined here as
\[ |\frac{dT}{dt}| = |\frac{\partial T}{\partial p} * \Delta p |. \]
For multiple voxels, we average the above formula to get the overall step scale.
Implements itk::RegistrationParameterScalesEstimator< TMetric >.
|
overridevirtual |
Reimplemented from itk::RegistrationParameterScalesEstimator< TMetric >.
References RegistrationParameterScalesFromJacobian().
|
static |
New macro for creation of through a Smart Pointer.
|
overrideprotectedvirtual |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::RegistrationParameterScalesEstimator< TMetric >.