ITK
4.2.0
Insight Segmentation and Registration Toolkit
|
#include <itkHistogramImageToImageMetric.h>
Private Member Functions | |
HistogramImageToImageMetric (const Self &) | |
void | operator= (const Self &) |
Private Attributes | |
double | m_DerivativeStepLength |
ScalesType | m_DerivativeStepLengthScales |
HistogramPointer | m_Histogram |
FixedImagePixelType | m_PaddingValue |
bool | m_UsePaddingValue |
Computes similarity between two objects to be registered.
This class is templated over the type of the fixed and moving images to be compared.
The metric computes the similarity measure between pixels in the moving image and pixels in the fixed image using a histogram.
Definition at line 39 of file itkHistogramImageToImageMetric.h.
typedef SmartPointer< const Self > itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::ConstPointer |
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Reimplemented in itk::KullbackLeiblerCompareHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::CompareHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::NormalizedMutualInformationHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::CorrelationCoefficientHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::MeanSquaresHistogramImageToImageMetric< TFixedImage, TMovingImage >, and itk::MutualInformationHistogramImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 47 of file itkHistogramImageToImageMetric.h.
typedef Superclass::DerivativeType itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::DerivativeType |
Type of the derivative.
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Reimplemented in itk::KullbackLeiblerCompareHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::CompareHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::NormalizedMutualInformationHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::CorrelationCoefficientHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::MeanSquaresHistogramImageToImageMetric< TFixedImage, TMovingImage >, and itk::MutualInformationHistogramImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 62 of file itkHistogramImageToImageMetric.h.
typedef Superclass::FixedImageConstPointer itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::FixedImageConstPointerType |
Definition at line 68 of file itkHistogramImageToImageMetric.h.
typedef Superclass::FixedImageType::PixelType itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::FixedImagePixelType |
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 64 of file itkHistogramImageToImageMetric.h.
typedef Superclass::FixedImageType itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::FixedImageType |
Type of the fixed Image.
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Reimplemented in itk::KullbackLeiblerCompareHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::CompareHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::NormalizedMutualInformationHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::CorrelationCoefficientHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::MeanSquaresHistogramImageToImageMetric< TFixedImage, TMovingImage >, and itk::MutualInformationHistogramImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 63 of file itkHistogramImageToImageMetric.h.
typedef Superclass::GradientPixelType itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::GradientPixelType |
Gaussian filter to compute the gradient of the Moving Image
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Reimplemented in itk::KullbackLeiblerCompareHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::CompareHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::NormalizedMutualInformationHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::CorrelationCoefficientHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::MeanSquaresHistogramImageToImageMetric< TFixedImage, TMovingImage >, and itk::MutualInformationHistogramImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 58 of file itkHistogramImageToImageMetric.h.
typedef HistogramType::Pointer itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::HistogramPointer |
Definition at line 79 of file itkHistogramImageToImageMetric.h.
typedef HistogramType::SizeType itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::HistogramSizeType |
Reimplemented in itk::KullbackLeiblerCompareHistogramImageToImageMetric< TFixedImage, TMovingImage >, and itk::CompareHistogramImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 78 of file itkHistogramImageToImageMetric.h.
typedef Statistics::Histogram< double > itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::HistogramType |
Typedefs for histogram. This should have been defined as Histogram<RealType,2> but a bug in VC++7 produced an internal compiler error with such declaration.
Reimplemented in itk::KullbackLeiblerCompareHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::CompareHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::NormalizedMutualInformationHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::CorrelationCoefficientHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::MeanSquaresHistogramImageToImageMetric< TFixedImage, TMovingImage >, and itk::MutualInformationHistogramImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 75 of file itkHistogramImageToImageMetric.h.
typedef Superclass::InputPointType itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::InputPointType |
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 59 of file itkHistogramImageToImageMetric.h.
typedef HistogramType::MeasurementVectorType itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::MeasurementVectorType |
Definition at line 77 of file itkHistogramImageToImageMetric.h.
typedef Superclass::MeasureType itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::MeasureType |
Type of the measure.
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Reimplemented in itk::KullbackLeiblerCompareHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::CompareHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::NormalizedMutualInformationHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::CorrelationCoefficientHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::MeanSquaresHistogramImageToImageMetric< TFixedImage, TMovingImage >, and itk::MutualInformationHistogramImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 61 of file itkHistogramImageToImageMetric.h.
typedef Superclass::MovingImageConstPointer itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::MovingImageConstPointerType |
Definition at line 70 of file itkHistogramImageToImageMetric.h.
typedef Superclass::MovingImageType::PixelType itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::MovingImagePixelType |
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 66 of file itkHistogramImageToImageMetric.h.
typedef Superclass::MovingImageType itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::MovingImageType |
Type of the moving Image.
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Reimplemented in itk::KullbackLeiblerCompareHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::CompareHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::NormalizedMutualInformationHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::CorrelationCoefficientHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::MeanSquaresHistogramImageToImageMetric< TFixedImage, TMovingImage >, and itk::MutualInformationHistogramImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 65 of file itkHistogramImageToImageMetric.h.
typedef Superclass::OutputPointType itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::OutputPointType |
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 60 of file itkHistogramImageToImageMetric.h.
typedef SmartPointer< Self > itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::Pointer |
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Reimplemented in itk::KullbackLeiblerCompareHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::CompareHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::NormalizedMutualInformationHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::CorrelationCoefficientHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::MeanSquaresHistogramImageToImageMetric< TFixedImage, TMovingImage >, and itk::MutualInformationHistogramImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 46 of file itkHistogramImageToImageMetric.h.
typedef Superclass::RealType itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::RealType |
Types transferred from the base class
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Reimplemented in itk::KullbackLeiblerCompareHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::CompareHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::NormalizedMutualInformationHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::CorrelationCoefficientHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::MeanSquaresHistogramImageToImageMetric< TFixedImage, TMovingImage >, and itk::MutualInformationHistogramImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 50 of file itkHistogramImageToImageMetric.h.
typedef Array< double > itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::ScalesType |
The scales type.
Definition at line 124 of file itkHistogramImageToImageMetric.h.
typedef HistogramImageToImageMetric itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::Self |
Standard class typedefs.
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Reimplemented in itk::KullbackLeiblerCompareHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::CompareHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::NormalizedMutualInformationHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::CorrelationCoefficientHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::MeanSquaresHistogramImageToImageMetric< TFixedImage, TMovingImage >, and itk::MutualInformationHistogramImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 44 of file itkHistogramImageToImageMetric.h.
typedef ImageToImageMetric< TFixedImage, TMovingImage > itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::Superclass |
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Reimplemented in itk::KullbackLeiblerCompareHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::CompareHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::NormalizedMutualInformationHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::CorrelationCoefficientHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::MeanSquaresHistogramImageToImageMetric< TFixedImage, TMovingImage >, and itk::MutualInformationHistogramImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 45 of file itkHistogramImageToImageMetric.h.
typedef Superclass::TransformJacobianType itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::TransformJacobianType |
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Reimplemented in itk::KullbackLeiblerCompareHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::CompareHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::NormalizedMutualInformationHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::CorrelationCoefficientHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::MeanSquaresHistogramImageToImageMetric< TFixedImage, TMovingImage >, and itk::MutualInformationHistogramImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 57 of file itkHistogramImageToImageMetric.h.
typedef Superclass::TransformParametersType itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::TransformParametersType |
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Reimplemented in itk::KullbackLeiblerCompareHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::CompareHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::NormalizedMutualInformationHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::CorrelationCoefficientHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::MeanSquaresHistogramImageToImageMetric< TFixedImage, TMovingImage >, and itk::MutualInformationHistogramImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 56 of file itkHistogramImageToImageMetric.h.
typedef Superclass::TransformPointer itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::TransformPointer |
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Reimplemented in itk::KullbackLeiblerCompareHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::CompareHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::NormalizedMutualInformationHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::CorrelationCoefficientHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::MeanSquaresHistogramImageToImageMetric< TFixedImage, TMovingImage >, and itk::MutualInformationHistogramImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 55 of file itkHistogramImageToImageMetric.h.
typedef Superclass::TransformType itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::TransformType |
Type of the Transform Base class
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Reimplemented in itk::KullbackLeiblerCompareHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::CompareHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::NormalizedMutualInformationHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::CorrelationCoefficientHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::MeanSquaresHistogramImageToImageMetric< TFixedImage, TMovingImage >, and itk::MutualInformationHistogramImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 54 of file itkHistogramImageToImageMetric.h.
|
protected |
Constructor is protected to ensure that New()
function is used to create instances.
|
inlineprotectedvirtual |
Definition at line 161 of file itkHistogramImageToImageMetric.h.
|
private |
|
protected |
Computes the joint histogram from the transformation parameters passed to the function.
|
protected |
Computes the joint histogram from the transformation parameters passed to the function.
|
protected |
Copies a histogram.
|
protectedpure virtual |
Evaluates the similarity measure using the given histogram. All subclasses must reimplement this method.
Implemented in itk::NormalizedMutualInformationHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::MeanSquaresHistogramImageToImageMetric< TFixedImage, TMovingImage >, and itk::MutualInformationHistogramImageToImageMetric< TFixedImage, TMovingImage >.
void itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::GetDerivative | ( | const TransformParametersType & | parameters, |
DerivativeType & | derivative | ||
) | const |
Get the derivatives of the match measure.
|
virtual |
Returns the step length used to calculate the derivative.
|
virtual |
Returns the derivate step length scales.
|
virtual |
Return the joint histogram. This is updated during every call to the GetValue() method. The histogram can for instance be used by itk::HistogramToImageFilter to plot the joint histogram.
|
virtual |
Gets the histogram size.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Reimplemented in itk::KullbackLeiblerCompareHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::CompareHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::NormalizedMutualInformationHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::CorrelationCoefficientHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::MeanSquaresHistogramImageToImageMetric< TFixedImage, TMovingImage >, and itk::MutualInformationHistogramImageToImageMetric< TFixedImage, TMovingImage >.
|
virtual |
Returns the padding value.
|
virtual |
Factor to increase the upper bound for the samples in the histogram. Default value is 0.001
|
virtual |
Set whether the padding value should be used to determine which pixels should be ignored when calculating the similarity measure. Those pixels in the fixed image which have the padding value will be ignored.
MeasureType itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::GetValue | ( | const TransformParametersType & | parameters | ) | const |
Get the value for single valued optimizers.
void itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::GetValueAndDerivative | ( | const TransformParametersType & | parameters, |
MeasureType & | Value, | ||
DerivativeType & | Derivative | ||
) | const |
Get value and derivatives for multiple valued optimizers.
|
virtual |
Initializes the metric.
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Reimplemented in itk::CompareHistogramImageToImageMetric< TFixedImage, TMovingImage >, and itk::KullbackLeiblerCompareHistogramImageToImageMetric< TFixedImage, TMovingImage >.
|
private |
Mutex lock to protect modification to the reference count
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Reimplemented in itk::CompareHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::KullbackLeiblerCompareHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::CorrelationCoefficientHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::NormalizedMutualInformationHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::MeanSquaresHistogramImageToImageMetric< TFixedImage, TMovingImage >, and itk::MutualInformationHistogramImageToImageMetric< TFixedImage, TMovingImage >.
|
protectedvirtual |
PrintSelf function
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Reimplemented in itk::CompareHistogramImageToImageMetric< TFixedImage, TMovingImage >, and itk::KullbackLeiblerCompareHistogramImageToImageMetric< TFixedImage, TMovingImage >.
|
virtual |
Sets the step length used to calculate the derivative.
|
virtual |
Sets the derivative step length scales.
|
virtual |
Sets the histogram size. Note this function must be called before Initialize()
.
void itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::SetLowerBound | ( | const MeasurementVectorType & | bound | ) |
Set the lower bounds of the intensities to be considered for computing the histogram. This option allows to focus the computation of the Metric in a particular range of intensities that correspond to features of interest.
|
virtual |
The padding value.
void itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::SetTransform | ( | TransformType * | transform | ) |
Define the transform and thereby the parameter space of the metric and the space of its derivatives
void itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::SetUpperBound | ( | const MeasurementVectorType & | bound | ) |
Set the upper bounds of the intensities to be considered for computing the histogram. This option allows to focus the computation of the Metric in a particular range of intensities that correspond to features of interest.
|
virtual |
Factor to increase the upper bound for the samples in the histogram. Default value is 0.001
|
virtual |
Set whether the padding value should be used to determine which pixels should be ignored when calculating the similarity measure. Those pixels in the fixed image which have the padding value will be ignored.
|
private |
The step length used to calculate the derivative.
Definition at line 218 of file itkHistogramImageToImageMetric.h.
|
private |
The derivative step length scales.
Definition at line 221 of file itkHistogramImageToImageMetric.h.
|
private |
Pointer to the joint histogram. This is updated during every call to GetValue()
Definition at line 225 of file itkHistogramImageToImageMetric.h.
|
protected |
The histogram size.
Definition at line 164 of file itkHistogramImageToImageMetric.h.
|
mutableprotected |
The lower bound for samples in the histogram.
Definition at line 167 of file itkHistogramImageToImageMetric.h.
|
protected |
Boolean flag to indicate whether the user supplied lower bounds or whether they should be computed from the min of image intensities
Definition at line 177 of file itkHistogramImageToImageMetric.h.
|
private |
The padding value.
Definition at line 210 of file itkHistogramImageToImageMetric.h.
|
mutableprotected |
The upper bound for samples in the histogram.
Definition at line 170 of file itkHistogramImageToImageMetric.h.
|
protected |
The increase in the upper bound.
Definition at line 173 of file itkHistogramImageToImageMetric.h.
|
protected |
Boolean flag to indicate whether the user supplied upper bounds or whether they should be computed from the max of image intensities
Definition at line 181 of file itkHistogramImageToImageMetric.h.
|
private |
True if those pixels in the fixed image with the same value as the padding value should be ignored when calculating the similarity measure.
Definition at line 215 of file itkHistogramImageToImageMetric.h.