ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkRegistrationParameterScalesEstimator.h>
Implements a registration helper class for estimating scales of transform parameters.
Its input includes the fixed/moving images and transform objects, which are obtained from the metric object.
This class implements some common methods as building blocks called by subclasses with various estimation strategies. One of these methods is SampleImageDomain, which provides various choices of sampling the image domain.
Definition at line 49 of file itkRegistrationParameterScalesEstimator.h.
typedef SmartPointer<const Self> itk::RegistrationParameterScalesEstimator< TMetric >::ConstPointer |
Reimplemented from itk::OptimizerParameterScalesEstimator.
Reimplemented in itk::RegistrationParameterScalesFromShift< TMetric >, and itk::RegistrationParameterScalesFromJacobian< TMetric >.
Definition at line 56 of file itkRegistrationParameterScalesEstimator.h.
typedef itk::ContinuousIndex< FixedPointValueType, FixedImageType::ImageDimension > itk::RegistrationParameterScalesEstimator< TMetric >::FixedContinuousIndexType |
Definition at line 107 of file itkRegistrationParameterScalesEstimator.h.
typedef FixedImageType::ConstPointer itk::RegistrationParameterScalesEstimator< TMetric >::FixedImageConstPointer |
Definition at line 86 of file itkRegistrationParameterScalesEstimator.h.
typedef TMetric::FixedImageType itk::RegistrationParameterScalesEstimator< TMetric >::FixedImageType |
Image Types to use in the initialization of the transform
Definition at line 82 of file itkRegistrationParameterScalesEstimator.h.
typedef FixedImageType::IndexType itk::RegistrationParameterScalesEstimator< TMetric >::FixedIndexType |
Definition at line 104 of file itkRegistrationParameterScalesEstimator.h.
typedef FixedImageType::PointType itk::RegistrationParameterScalesEstimator< TMetric >::FixedPointType |
Definition at line 103 of file itkRegistrationParameterScalesEstimator.h.
typedef FixedImageType::PointValueType itk::RegistrationParameterScalesEstimator< TMetric >::FixedPointValueType |
Definition at line 105 of file itkRegistrationParameterScalesEstimator.h.
typedef FixedTransformType::ConstPointer itk::RegistrationParameterScalesEstimator< TMetric >::FixedTransformConstPointer |
Definition at line 75 of file itkRegistrationParameterScalesEstimator.h.
typedef MetricType::FixedTransformType itk::RegistrationParameterScalesEstimator< TMetric >::FixedTransformType |
Type of the transform to initialize
Reimplemented in itk::RegistrationParameterScalesFromShift< TMetric >, and itk::RegistrationParameterScalesFromJacobian< TMetric >.
Definition at line 74 of file itkRegistrationParameterScalesEstimator.h.
typedef Superclass::FloatType itk::RegistrationParameterScalesEstimator< TMetric >::FloatType |
Type of float
Reimplemented from itk::OptimizerParameterScalesEstimator.
Reimplemented in itk::RegistrationParameterScalesFromShift< TMetric >, and itk::RegistrationParameterScalesFromJacobian< TMetric >.
Definition at line 68 of file itkRegistrationParameterScalesEstimator.h.
typedef std::vector<VirtualPointType> itk::RegistrationParameterScalesEstimator< TMetric >::ImageSampleContainerType |
Definition at line 120 of file itkRegistrationParameterScalesEstimator.h.
typedef TMetric::JacobianType itk::RegistrationParameterScalesEstimator< TMetric >::JacobianType |
Type of Jacobian of transform.
Reimplemented in itk::RegistrationParameterScalesFromShift< TMetric >, and itk::RegistrationParameterScalesFromJacobian< TMetric >.
Definition at line 123 of file itkRegistrationParameterScalesEstimator.h.
typedef MetricType::ConstPointer itk::RegistrationParameterScalesEstimator< TMetric >::MetricConstPointer |
Definition at line 71 of file itkRegistrationParameterScalesEstimator.h.
typedef TMetric itk::RegistrationParameterScalesEstimator< TMetric >::MetricType |
Definition at line 70 of file itkRegistrationParameterScalesEstimator.h.
typedef itk::ContinuousIndex< MovingPointValueType, MovingImageType::ImageDimension > itk::RegistrationParameterScalesEstimator< TMetric >::MovingContinuousIndexType |
Definition at line 113 of file itkRegistrationParameterScalesEstimator.h.
typedef MovingImageType::ConstPointer itk::RegistrationParameterScalesEstimator< TMetric >::MovingImageConstPointer |
Definition at line 87 of file itkRegistrationParameterScalesEstimator.h.
typedef TMetric::MovingImageType itk::RegistrationParameterScalesEstimator< TMetric >::MovingImageType |
Definition at line 83 of file itkRegistrationParameterScalesEstimator.h.
typedef MovingImageType::IndexType itk::RegistrationParameterScalesEstimator< TMetric >::MovingIndexType |
Definition at line 110 of file itkRegistrationParameterScalesEstimator.h.
typedef MovingImageType::PointType itk::RegistrationParameterScalesEstimator< TMetric >::MovingPointType |
Definition at line 109 of file itkRegistrationParameterScalesEstimator.h.
typedef MovingImageType::PointValueType itk::RegistrationParameterScalesEstimator< TMetric >::MovingPointValueType |
Definition at line 111 of file itkRegistrationParameterScalesEstimator.h.
typedef MovingTransformType::ConstPointer itk::RegistrationParameterScalesEstimator< TMetric >::MovingTransformConstPointer |
Definition at line 79 of file itkRegistrationParameterScalesEstimator.h.
typedef MetricType::MovingTransformType itk::RegistrationParameterScalesEstimator< TMetric >::MovingTransformType |
Reimplemented in itk::RegistrationParameterScalesFromShift< TMetric >, and itk::RegistrationParameterScalesFromJacobian< TMetric >.
Definition at line 77 of file itkRegistrationParameterScalesEstimator.h.
typedef Superclass::ParametersType itk::RegistrationParameterScalesEstimator< TMetric >::ParametersType |
Type of paramters of the optimizer
Reimplemented from itk::OptimizerParameterScalesEstimator.
Reimplemented in itk::RegistrationParameterScalesFromShift< TMetric >, and itk::RegistrationParameterScalesFromJacobian< TMetric >.
Definition at line 65 of file itkRegistrationParameterScalesEstimator.h.
typedef SmartPointer<Self> itk::RegistrationParameterScalesEstimator< TMetric >::Pointer |
Reimplemented from itk::OptimizerParameterScalesEstimator.
Reimplemented in itk::RegistrationParameterScalesFromShift< TMetric >, and itk::RegistrationParameterScalesFromJacobian< TMetric >.
Definition at line 55 of file itkRegistrationParameterScalesEstimator.h.
typedef Superclass::ScalesType itk::RegistrationParameterScalesEstimator< TMetric >::ScalesType |
Type of scales
Reimplemented from itk::OptimizerParameterScalesEstimator.
Reimplemented in itk::RegistrationParameterScalesFromShift< TMetric >, and itk::RegistrationParameterScalesFromJacobian< TMetric >.
Definition at line 59 of file itkRegistrationParameterScalesEstimator.h.
typedef RegistrationParameterScalesEstimator itk::RegistrationParameterScalesEstimator< TMetric >::Self |
Standard class typedefs.
Reimplemented from itk::OptimizerParameterScalesEstimator.
Reimplemented in itk::RegistrationParameterScalesFromShift< TMetric >, and itk::RegistrationParameterScalesFromJacobian< TMetric >.
Definition at line 53 of file itkRegistrationParameterScalesEstimator.h.
typedef OptimizerParameterScalesEstimator itk::RegistrationParameterScalesEstimator< TMetric >::Superclass |
Reimplemented from itk::OptimizerParameterScalesEstimator.
Reimplemented in itk::RegistrationParameterScalesFromShift< TMetric >, and itk::RegistrationParameterScalesFromJacobian< TMetric >.
Definition at line 54 of file itkRegistrationParameterScalesEstimator.h.
typedef VirtualImageType::ConstPointer itk::RegistrationParameterScalesEstimator< TMetric >::VirtualImageConstPointer |
Reimplemented in itk::RegistrationParameterScalesFromShift< TMetric >, and itk::RegistrationParameterScalesFromJacobian< TMetric >.
Definition at line 88 of file itkRegistrationParameterScalesEstimator.h.
typedef TMetric::VirtualImageType itk::RegistrationParameterScalesEstimator< TMetric >::VirtualImageType |
Definition at line 84 of file itkRegistrationParameterScalesEstimator.h.
typedef VirtualImageType::IndexType itk::RegistrationParameterScalesEstimator< TMetric >::VirtualIndexType |
Reimplemented in itk::RegistrationParameterScalesFromShift< TMetric >, and itk::RegistrationParameterScalesFromJacobian< TMetric >.
Definition at line 101 of file itkRegistrationParameterScalesEstimator.h.
typedef VirtualImageType::PointType itk::RegistrationParameterScalesEstimator< TMetric >::VirtualPointType |
Reimplemented in itk::RegistrationParameterScalesFromShift< TMetric >, and itk::RegistrationParameterScalesFromJacobian< TMetric >.
Definition at line 100 of file itkRegistrationParameterScalesEstimator.h.
typedef VirtualImageType::RegionType itk::RegistrationParameterScalesEstimator< TMetric >::VirtualRegionType |
Definition at line 98 of file itkRegistrationParameterScalesEstimator.h.
typedef VirtualImageType::SizeType itk::RegistrationParameterScalesEstimator< TMetric >::VirtualSizeType |
Definition at line 99 of file itkRegistrationParameterScalesEstimator.h.
enum itk::RegistrationParameterScalesEstimator::SamplingStrategyType |
The strategies to sample physical points in the virtual domain.
Definition at line 116 of file itkRegistrationParameterScalesEstimator.h.
itk::RegistrationParameterScalesEstimator< TMetric >::RegistrationParameterScalesEstimator | ( | ) | [protected] |
itk::RegistrationParameterScalesEstimator< TMetric >::~RegistrationParameterScalesEstimator | ( | ) | [inline, protected] |
Definition at line 162 of file itkRegistrationParameterScalesEstimator.h.
itk::RegistrationParameterScalesEstimator< TMetric >::RegistrationParameterScalesEstimator | ( | const Self & | ) | [private] |
bool itk::RegistrationParameterScalesEstimator< TMetric >::CheckAndSetInputs | ( | ) | [protected] |
Check and set the images and transforms from the metric.
bool itk::RegistrationParameterScalesEstimator< TMetric >::CheckGeneralAffineTransform | ( | ) | [protected] |
Check if the transform is a general affine transform that maps a line segment to a line segment.
bool itk::RegistrationParameterScalesEstimator< TMetric >::CheckGeneralAffineTransformTemplated | ( | ) | [protected] |
The templated version of CheckGeneralAffineTransform to check if the transform is a general affine transform that maps a line segment to a line segment.
void itk::RegistrationParameterScalesEstimator< TMetric >::ComputeSquaredJacobianNorms | ( | const VirtualPointType & | p, |
ParametersType & | squareNorms | ||
) | [protected] |
Compute the transform Jacobian at a physical point.
virtual void itk::RegistrationParameterScalesEstimator< TMetric >::EstimateLocalStepScales | ( | const ParametersType & | step, |
ScalesType & | localStepScales | ||
) | [pure virtual] |
Estimate the scales of local steps.
Implements itk::OptimizerParameterScalesEstimator.
Implemented in itk::RegistrationParameterScalesFromJacobian< TMetric >, and itk::RegistrationParameterScalesFromShift< TMetric >.
virtual FloatType itk::RegistrationParameterScalesEstimator< TMetric >::EstimateMaximumStepSize | ( | ) | [virtual] |
Estimate the trusted scale for steps. It returns the voxel spacing.
Implements itk::OptimizerParameterScalesEstimator.
virtual void itk::RegistrationParameterScalesEstimator< TMetric >::EstimateScales | ( | ScalesType & | scales | ) | [pure virtual] |
Estimate parameter scales
Implements itk::OptimizerParameterScalesEstimator.
Implemented in itk::RegistrationParameterScalesFromShift< TMetric >, and itk::RegistrationParameterScalesFromJacobian< TMetric >.
virtual FloatType itk::RegistrationParameterScalesEstimator< TMetric >::EstimateStepScale | ( | const ParametersType & | step | ) | [pure virtual] |
Estimate the step scale, the impact of a step on deformation.
Implements itk::OptimizerParameterScalesEstimator.
Implemented in itk::RegistrationParameterScalesFromJacobian< TMetric >, and itk::RegistrationParameterScalesFromShift< TMetric >.
virtual const FixedImageType* itk::RegistrationParameterScalesEstimator< TMetric >::GetFixedImage | ( | ) | [protected, virtual] |
Get the fixed Image.
virtual const FixedTransformType* itk::RegistrationParameterScalesEstimator< TMetric >::GetFixedTransform | ( | ) | [protected, virtual] |
Get the fixed transform.
SizeValueType itk::RegistrationParameterScalesEstimator< TMetric >::GetImageDimension | ( | ) | [protected] |
Get the dimension of the target image transformed to.
virtual const MovingImageType* itk::RegistrationParameterScalesEstimator< TMetric >::GetMovingImage | ( | ) | [protected, virtual] |
Get the moving Image.
virtual const MovingTransformType* itk::RegistrationParameterScalesEstimator< TMetric >::GetMovingTransform | ( | ) | [protected, virtual] |
Get the moving transform.
virtual const char* itk::RegistrationParameterScalesEstimator< TMetric >::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods).
Reimplemented from itk::OptimizerParameterScalesEstimator.
Reimplemented in itk::RegistrationParameterScalesFromShift< TMetric >, and itk::RegistrationParameterScalesFromJacobian< TMetric >.
SizeValueType itk::RegistrationParameterScalesEstimator< TMetric >::GetNumberOfLocalParameters | ( | ) | [protected] |
Get the number of local parameters.
const TransformBase* itk::RegistrationParameterScalesEstimator< TMetric >::GetTransform | ( | ) | [protected] |
Get the transform in use.
virtual bool itk::RegistrationParameterScalesEstimator< TMetric >::GetTransformForward | ( | ) | const [virtual] |
m_TransformForward specifies which transform scales to be estimated. m_TransformForward = true for the moving transform parameters. m_TransformForward = false for the fixed transform parameters.
virtual const VirtualImageType* itk::RegistrationParameterScalesEstimator< TMetric >::GetVirtualImage | ( | ) | [protected, virtual] |
Get the virtual Image.
VirtualIndexType itk::RegistrationParameterScalesEstimator< TMetric >::GetVirtualImageCentralIndex | ( | ) | [protected] |
Get the central index of the virtual domain.
VirtualRegionType itk::RegistrationParameterScalesEstimator< TMetric >::GetVirtualImageCentralRegion | ( | ) | [protected] |
Get the central region of the virtual domain.
bool itk::RegistrationParameterScalesEstimator< TMetric >::HasLocalSupport | ( | ) | [protected] |
Check if the transform being optimized has local support.
void itk::RegistrationParameterScalesEstimator< TMetric >::operator= | ( | const Self & | ) | [private] |
Mutex lock to protect modification to the reference count
Reimplemented from itk::OptimizerParameterScalesEstimator.
Reimplemented in itk::RegistrationParameterScalesFromShift< TMetric >, and itk::RegistrationParameterScalesFromJacobian< TMetric >.
virtual void itk::RegistrationParameterScalesEstimator< TMetric >::PrintSelf | ( | std::ostream & | os, |
Indent | indent | ||
) | const [protected, virtual] |
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::OptimizerParameterScalesEstimator.
Reimplemented in itk::RegistrationParameterScalesFromJacobian< TMetric >, and itk::RegistrationParameterScalesFromShift< TMetric >.
virtual void itk::RegistrationParameterScalesEstimator< TMetric >::SampleImageDomain | ( | ) | [protected, virtual] |
Sample the virtual image domain and store the physical points in m_ImageSamples.
void itk::RegistrationParameterScalesEstimator< TMetric >::SampleImageDomainFully | ( | ) | [protected] |
Sample the virutal domain with all pixels.
void itk::RegistrationParameterScalesEstimator< TMetric >::SampleImageDomainRandomly | ( | ) | [protected] |
Sample the virutal domain randomly in a uniform distribution.
void itk::RegistrationParameterScalesEstimator< TMetric >::SampleImageDomainWithCentralRegion | ( | ) | [protected] |
Sample the virutal domain with voxel in the central region.
void itk::RegistrationParameterScalesEstimator< TMetric >::SampleImageDomainWithCorners | ( | ) | [protected] |
Sample the virutal domain with corners.
void itk::RegistrationParameterScalesEstimator< TMetric >::SampleImageDomainWithRegion | ( | VirtualRegionType | region | ) | [protected] |
Sample the virtual domain with all voxels inside a region.
virtual void itk::RegistrationParameterScalesEstimator< TMetric >::SetCentralRegionRadius | ( | IndexValueType | _arg | ) | [virtual] |
the radius of the central region for sampling.
virtual void itk::RegistrationParameterScalesEstimator< TMetric >::SetMetric | ( | MetricType * | _arg | ) | [virtual] |
SetMetric sets the metric used in the estimation process. The images and transforms from the metric will be used for estimation.
virtual void itk::RegistrationParameterScalesEstimator< TMetric >::SetNumberOfRandomSamples | ( | SizeValueType | _arg | ) | [protected, virtual] |
Set and get the number of image samples.
virtual void itk::RegistrationParameterScalesEstimator< TMetric >::SetSamplingStrategy | ( | SamplingStrategyType | _arg | ) | [protected, virtual] |
Set the sampling strategy.
virtual void itk::RegistrationParameterScalesEstimator< TMetric >::SetScalesSamplingStrategy | ( | ) | [virtual] |
Set the sampling strategy automatically for scales estimation.
virtual void itk::RegistrationParameterScalesEstimator< TMetric >::SetStepScaleSamplingStrategy | ( | ) | [virtual] |
Set the sampling strategy automatically for step scale estimation.
virtual void itk::RegistrationParameterScalesEstimator< TMetric >::SetTransformForward | ( | bool | _arg | ) | [virtual] |
m_TransformForward specifies which transform scales to be estimated. m_TransformForward = true for the moving transform parameters. m_TransformForward = false for the fixed transform parameters.
void itk::RegistrationParameterScalesEstimator< TMetric >::TransformPoint | ( | const VirtualPointType & | point, |
TTargetPointType & | mappedPoint | ||
) | [protected] |
Transform a physical point to a new physical point.
void itk::RegistrationParameterScalesEstimator< TMetric >::TransformPointToContinuousIndex | ( | const VirtualPointType & | point, |
TContinuousIndexType & | mappedIndex | ||
) | [protected] |
Transform a point to its continous index.
void itk::RegistrationParameterScalesEstimator< TMetric >::UpdateTransformParameters | ( | const ParametersType & | deltaParameters | ) | [protected] |
Update the transform with a change in parameters.
const SizeValueType itk::RegistrationParameterScalesEstimator< TMetric >::FixedImageDimension = ::itk::GetImageDimension<FixedImageType>::ImageDimension [static] |
Definition at line 92 of file itkRegistrationParameterScalesEstimator.h.
IndexValueType itk::RegistrationParameterScalesEstimator< TMetric >::m_CentralRegionRadius [protected] |
Definition at line 270 of file itkRegistrationParameterScalesEstimator.h.
FixedImageConstPointer itk::RegistrationParameterScalesEstimator< TMetric >::m_FixedImage [private] |
Definition at line 284 of file itkRegistrationParameterScalesEstimator.h.
FixedTransformConstPointer itk::RegistrationParameterScalesEstimator< TMetric >::m_FixedTransform [private] |
Definition at line 280 of file itkRegistrationParameterScalesEstimator.h.
ImageSampleContainerType itk::RegistrationParameterScalesEstimator< TMetric >::m_ImageSamples [protected] |
Definition at line 261 of file itkRegistrationParameterScalesEstimator.h.
MetricConstPointer itk::RegistrationParameterScalesEstimator< TMetric >::m_Metric [protected] |
Definition at line 255 of file itkRegistrationParameterScalesEstimator.h.
MovingImageConstPointer itk::RegistrationParameterScalesEstimator< TMetric >::m_MovingImage [private] |
Definition at line 286 of file itkRegistrationParameterScalesEstimator.h.
MovingTransformConstPointer itk::RegistrationParameterScalesEstimator< TMetric >::m_MovingTransform [private] |
Definition at line 281 of file itkRegistrationParameterScalesEstimator.h.
SizeValueType itk::RegistrationParameterScalesEstimator< TMetric >::m_NumberOfRandomSamples [protected] |
Definition at line 267 of file itkRegistrationParameterScalesEstimator.h.
SamplingStrategyType itk::RegistrationParameterScalesEstimator< TMetric >::m_SamplingStrategy [private] |
Definition at line 297 of file itkRegistrationParameterScalesEstimator.h.
TimeStamp itk::RegistrationParameterScalesEstimator< TMetric >::m_SamplingTime [mutable, protected] |
Keep track of the last sampling time.
Definition at line 264 of file itkRegistrationParameterScalesEstimator.h.
bool itk::RegistrationParameterScalesEstimator< TMetric >::m_TransformForward [private] |
m_TransformForward specifies which transform scales to be estimated. m_TransformForward = true for the moving transform parameters. m_TransformForward = false for the fixed transform parameters.
Definition at line 294 of file itkRegistrationParameterScalesEstimator.h.
VirtualImageConstPointer itk::RegistrationParameterScalesEstimator< TMetric >::m_VirtualImage [private] |
Definition at line 288 of file itkRegistrationParameterScalesEstimator.h.
const SizeValueType itk::RegistrationParameterScalesEstimator< TMetric >::MovingImageDimension = ::itk::GetImageDimension<MovingImageType>::ImageDimension [static] |
Definition at line 94 of file itkRegistrationParameterScalesEstimator.h.
const SizeValueType itk::RegistrationParameterScalesEstimator< TMetric >::SizeOfSmallDomain = 1000 [static, protected] |
Definition at line 273 of file itkRegistrationParameterScalesEstimator.h.
const SizeValueType itk::RegistrationParameterScalesEstimator< TMetric >::VirtualImageDimension = ::itk::GetImageDimension<VirtualImageType>::ImageDimension [static] |
Definition at line 96 of file itkRegistrationParameterScalesEstimator.h.