ITK
4.2.0
Insight Segmentation and Registration Toolkit
|
#include <itkGradientDifferenceImageToImageMetric.h>
Static Public Member Functions | |
static Pointer | New () |
Static Public Attributes | |
static const unsigned int | FixedImageDimension = TFixedImage::ImageDimension |
static const unsigned int | MovedImageDimension = MovingImageType::ImageDimension |
Static Public Attributes inherited from itk::ImageToImageMetric< TFixedImage, TMovingImage > | |
static const unsigned int | MovingImageDimension = TMovingImage::ImageDimension |
Private Member Functions | |
GradientDifferenceImageToImageMetric (const Self &) | |
void | operator= (const Self &) |
Computes similarity between two objects to be registered.
This Class is templated over the type of the Images to be compared and over the type of transformation and Iterpolator to be used.
This metric computes the sum of squared differences between pixels in the derivatives of the moving and fixed images after passing the squared difference through a function of type .
Spatial correspondance between both images is established through a Transform. Pixel values are taken from the Moving image. Their positions are mapped to the Fixed image and result in general in non-grid position on it. Values at these non-grid position of the Fixed image are interpolated using a user-selected Interpolator.
Implementation of this class is based on: Hipwell, J. H., et. al. (2003), "Intensity-Based 2-D-3D Registration of Cerebral Angiograms,", IEEE Transactions on Medical Imaging, 22(11):1417-1426.
Definition at line 58 of file itkGradientDifferenceImageToImageMetric.h.
typedef CastFixedImageFilterType::Pointer itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::CastFixedImageFilterPointer |
Definition at line 107 of file itkGradientDifferenceImageToImageMetric.h.
typedef itk::CastImageFilter< FixedImageType, FixedGradientImageType > itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::CastFixedImageFilterType |
Definition at line 106 of file itkGradientDifferenceImageToImageMetric.h.
typedef CastMovedImageFilterType::Pointer itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::CastMovedImageFilterPointer |
Definition at line 118 of file itkGradientDifferenceImageToImageMetric.h.
typedef itk::CastImageFilter< TransformedMovingImageType, MovedGradientImageType > itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::CastMovedImageFilterType |
Definition at line 117 of file itkGradientDifferenceImageToImageMetric.h.
typedef SmartPointer< const Self > itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::ConstPointer |
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 68 of file itkGradientDifferenceImageToImageMetric.h.
typedef Superclass::DerivativeType itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::DerivativeType |
Type of the derivative.
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 84 of file itkGradientDifferenceImageToImageMetric.h.
typedef itk::Image< RealType, itkGetStaticConstMacro(FixedImageDimension) > itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::FixedGradientImageType |
Sobel filters to compute the gradients of the Fixed Image
Definition at line 104 of file itkGradientDifferenceImageToImageMetric.h.
typedef FixedGradientImageType::PixelType itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::FixedGradientPixelType |
Definition at line 109 of file itkGradientDifferenceImageToImageMetric.h.
typedef Superclass::FixedImageConstPointer itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::FixedImageConstPointer |
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 87 of file itkGradientDifferenceImageToImageMetric.h.
typedef TFixedImage::PixelType itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::FixedImagePixelType |
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 90 of file itkGradientDifferenceImageToImageMetric.h.
typedef Superclass::FixedImageType itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::FixedImageType |
Type of the fixed Image.
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 85 of file itkGradientDifferenceImageToImageMetric.h.
|
protected |
Definition at line 162 of file itkGradientDifferenceImageToImageMetric.h.
typedef Superclass::MeasureType itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::MeasureType |
Type of the measure.
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 83 of file itkGradientDifferenceImageToImageMetric.h.
typedef itk::Image< RealType, itkGetStaticConstMacro(MovedImageDimension) > itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::MovedGradientImageType |
Definition at line 115 of file itkGradientDifferenceImageToImageMetric.h.
typedef MovedGradientImageType::PixelType itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::MovedGradientPixelType |
Definition at line 120 of file itkGradientDifferenceImageToImageMetric.h.
typedef TMovingImage::PixelType itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::MovedImagePixelType |
Definition at line 91 of file itkGradientDifferenceImageToImageMetric.h.
|
protected |
Definition at line 165 of file itkGradientDifferenceImageToImageMetric.h.
typedef Superclass::MovingImageConstPointer itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::MovingImageConstPointer |
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 88 of file itkGradientDifferenceImageToImageMetric.h.
typedef Superclass::MovingImageType itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::MovingImageType |
Type of the moving Image.
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 86 of file itkGradientDifferenceImageToImageMetric.h.
typedef SmartPointer< Self > itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::Pointer |
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 67 of file itkGradientDifferenceImageToImageMetric.h.
typedef Superclass::RealType itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::RealType |
Types transferred from the base class
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 74 of file itkGradientDifferenceImageToImageMetric.h.
typedef GradientDifferenceImageToImageMetric itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::Self |
Standard class typedefs.
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 64 of file itkGradientDifferenceImageToImageMetric.h.
typedef ImageToImageMetric< TFixedImage, TMovingImage > itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::Superclass |
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 65 of file itkGradientDifferenceImageToImageMetric.h.
typedef itk::Image< FixedImagePixelType, itkGetStaticConstMacro(FixedImageDimension) > itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::TransformedMovingImageType |
Types for transforming the moving image
Definition at line 97 of file itkGradientDifferenceImageToImageMetric.h.
typedef Superclass::TransformJacobianType itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::TransformJacobianType |
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 81 of file itkGradientDifferenceImageToImageMetric.h.
typedef itk::ResampleImageFilter< MovingImageType, TransformedMovingImageType > itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::TransformMovingImageFilterType |
Definition at line 100 of file itkGradientDifferenceImageToImageMetric.h.
typedef Superclass::TransformParametersType itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::TransformParametersType |
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 80 of file itkGradientDifferenceImageToImageMetric.h.
typedef Superclass::TransformPointer itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::TransformPointer |
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 79 of file itkGradientDifferenceImageToImageMetric.h.
typedef Superclass::TransformType itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::TransformType |
Type of the Transform Base class
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 78 of file itkGradientDifferenceImageToImageMetric.h.
|
protected |
Set/Get the value of Delta used for computing derivatives by finite differences in the GetDerivative() method
|
inlineprotectedvirtual |
Set/Get the value of Delta used for computing derivatives by finite differences in the GetDerivative() method
Definition at line 147 of file itkGradientDifferenceImageToImageMetric.h.
|
private |
|
protected |
Compute the similarity measure using a specified subtraction factor.
|
protected |
Compute the range of the moved image gradients.
|
protected |
Compute the variance and range of the moving image gradients.
|
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.
void itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::GetDerivative | ( | const TransformParametersType & | parameters, |
DerivativeType & | derivative | ||
) | const |
Get the derivatives of the match measure.
|
virtual |
Set/Get the value of Delta used for computing derivatives by finite differences in the GetDerivative() method
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
MeasureType itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::GetValue | ( | const TransformParametersType & | parameters | ) | const |
Get the value for single valued optimizers.
void itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::GetValueAndDerivative | ( | const TransformParametersType & | parameters, |
MeasureType & | Value, | ||
DerivativeType & | derivative | ||
) | const |
Get value and derivatives for multiple valued optimizers.
|
virtual |
Initialize the Metric by making sure that all the components are present and plugged together correctly
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
|
static |
Method for creation through the object factory.
Reimplemented from itk::Object.
|
private |
Mutex lock to protect modification to the reference count
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
|
protectedvirtual |
Set/Get the value of Delta used for computing derivatives by finite differences in the GetDerivative() method
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
|
virtual |
Set/Get the value of Delta used for computing derivatives by finite differences in the GetDerivative() method
void itk::GradientDifferenceImageToImageMetric< TFixedImage, TMovingImage >::WriteGradientImagesToFiles | ( | void | ) | const |
Write gradient images to a files for debugging purposes.
|
static |
Constants for the image dimensions
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 93 of file itkGradientDifferenceImageToImageMetric.h.
|
private |
The Sobel gradients of the fixed image
Definition at line 188 of file itkGradientDifferenceImageToImageMetric.h.
|
private |
The Sobel gradients of the moving image
Definition at line 200 of file itkGradientDifferenceImageToImageMetric.h.
|
private |
Definition at line 208 of file itkGradientDifferenceImageToImageMetric.h.
|
private |
Definition at line 197 of file itkGradientDifferenceImageToImageMetric.h.
|
private |
Definition at line 194 of file itkGradientDifferenceImageToImageMetric.h.
|
private |
Definition at line 192 of file itkGradientDifferenceImageToImageMetric.h.
|
mutableprivate |
Definition at line 182 of file itkGradientDifferenceImageToImageMetric.h.
|
mutableprivate |
Definition at line 178 of file itkGradientDifferenceImageToImageMetric.h.
|
mutableprivate |
The range of the fixed image gradients.
Definition at line 181 of file itkGradientDifferenceImageToImageMetric.h.
|
mutableprivate |
The range of the moving image gradients.
Definition at line 177 of file itkGradientDifferenceImageToImageMetric.h.
|
private |
Definition at line 196 of file itkGradientDifferenceImageToImageMetric.h.
|
private |
Definition at line 206 of file itkGradientDifferenceImageToImageMetric.h.
|
private |
Definition at line 204 of file itkGradientDifferenceImageToImageMetric.h.
|
private |
The filter for transforming the moving image.
Definition at line 185 of file itkGradientDifferenceImageToImageMetric.h.
|
mutableprivate |
The variance of the moving image gradients.
Definition at line 174 of file itkGradientDifferenceImageToImageMetric.h.
|
static |
Sobel filters to compute the gradients of the Moved Image
Definition at line 113 of file itkGradientDifferenceImageToImageMetric.h.