ITK
4.9.0
Insight Segmentation and Registration Toolkit
|
#include <itkHistogramImageToImageMetric.h>
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.
Private Member Functions | |
HistogramImageToImageMetric (const Self &) ITK_DELETE_FUNCTION | |
void | operator= (const Self &) ITK_DELETE_FUNCTION |
Private Attributes | |
double | m_DerivativeStepLength |
ScalesType | m_DerivativeStepLengthScales |
HistogramPointer | m_Histogram |
FixedImagePixelType | m_PaddingValue |
bool | m_UsePaddingValue |
typedef SmartPointer< const Self > itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::ConstPointer |
Definition at line 47 of file itkHistogramImageToImageMetric.h.
typedef Superclass::DerivativeType itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::DerivativeType |
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 |
Definition at line 64 of file itkHistogramImageToImageMetric.h.
typedef Superclass::FixedImageType itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::FixedImageType |
Definition at line 63 of file itkHistogramImageToImageMetric.h.
typedef Superclass::GradientPixelType itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::GradientPixelType |
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 |
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.
Definition at line 75 of file itkHistogramImageToImageMetric.h.
typedef Superclass::InputPointType itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::InputPointType |
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 |
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 |
Definition at line 66 of file itkHistogramImageToImageMetric.h.
typedef Superclass::MovingImageType itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::MovingImageType |
Definition at line 65 of file itkHistogramImageToImageMetric.h.
typedef Superclass::OutputPointType itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::OutputPointType |
Definition at line 60 of file itkHistogramImageToImageMetric.h.
typedef SmartPointer< Self > itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::Pointer |
Definition at line 46 of file itkHistogramImageToImageMetric.h.
typedef Superclass::RealType itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::RealType |
Types transferred from the base class
Definition at line 50 of file itkHistogramImageToImageMetric.h.
typedef Array< double > itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::ScalesType |
The scales type.
Definition at line 123 of file itkHistogramImageToImageMetric.h.
typedef HistogramImageToImageMetric itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::Self |
Standard class typedefs.
Definition at line 44 of file itkHistogramImageToImageMetric.h.
typedef ImageToImageMetric< TFixedImage, TMovingImage > itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::Superclass |
Definition at line 45 of file itkHistogramImageToImageMetric.h.
typedef Superclass::TransformJacobianType itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::TransformJacobianType |
Definition at line 57 of file itkHistogramImageToImageMetric.h.
typedef Superclass::TransformParametersType itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::TransformParametersType |
Definition at line 56 of file itkHistogramImageToImageMetric.h.
typedef Superclass::TransformPointer itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::TransformPointer |
Definition at line 55 of file itkHistogramImageToImageMetric.h.
typedef Superclass::TransformType itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::TransformType |
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 166 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::CompareHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::KullbackLeiblerCompareHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::NormalizedMutualInformationHistogramImageToImageMetric< TFixedImage, TMovingImage >, itk::MeanSquaresHistogramImageToImageMetric< TFixedImage, TMovingImage >, and itk::MutualInformationHistogramImageToImageMetric< TFixedImage, TMovingImage >.
|
override |
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.
const MeasurementVectorType& itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::GetLowerBound | ( | ) | const |
Returns the current state of m_LowerBound.
|
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.
const MeasurementVectorType& itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::GetUpperBound | ( | ) | const |
Returns the current state of m_UpperBound.
|
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.
|
override |
Get the value for single valued optimizers.
|
override |
Get value and derivatives for multiple valued optimizers.
|
overridevirtual |
Initializes the metric.
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Reimplemented in itk::KullbackLeiblerCompareHistogramImageToImageMetric< TFixedImage, TMovingImage >.
|
private |
|
overrideprotectedvirtual |
PrintSelf function
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Reimplemented in 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.
|
override |
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 223 of file itkHistogramImageToImageMetric.h.
|
private |
The derivative step length scales.
Definition at line 226 of file itkHistogramImageToImageMetric.h.
|
private |
Pointer to the joint histogram. This is updated during every call to GetValue()
Definition at line 230 of file itkHistogramImageToImageMetric.h.
|
protected |
The histogram size.
Definition at line 169 of file itkHistogramImageToImageMetric.h.
|
mutableprotected |
The lower bound for samples in the histogram.
Definition at line 172 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 182 of file itkHistogramImageToImageMetric.h.
|
private |
The padding value.
Definition at line 215 of file itkHistogramImageToImageMetric.h.
|
mutableprotected |
The upper bound for samples in the histogram.
Definition at line 175 of file itkHistogramImageToImageMetric.h.
|
protected |
The increase in the upper bound.
Definition at line 178 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 186 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 220 of file itkHistogramImageToImageMetric.h.