ITK
5.0.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 Attributes | |
double | m_DerivativeStepLength |
ScalesType | m_DerivativeStepLengthScales |
HistogramPointer | m_Histogram |
FixedImagePixelType | m_PaddingValue |
bool | m_UsePaddingValue |
using itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::ConstPointer = SmartPointer< const Self > |
Definition at line 49 of file itkHistogramImageToImageMetric.h.
using itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::DerivativeType = typename Superclass::DerivativeType |
Definition at line 64 of file itkHistogramImageToImageMetric.h.
using itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::FixedImageConstPointerType = typename Superclass::FixedImageConstPointer |
Definition at line 69 of file itkHistogramImageToImageMetric.h.
using itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::FixedImagePixelType = typename Superclass::FixedImageType::PixelType |
Definition at line 66 of file itkHistogramImageToImageMetric.h.
using itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::FixedImageType = typename Superclass::FixedImageType |
Definition at line 65 of file itkHistogramImageToImageMetric.h.
using itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::GradientPixelType = typename Superclass::GradientPixelType |
Definition at line 60 of file itkHistogramImageToImageMetric.h.
using itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::HistogramPointer = typename HistogramType::Pointer |
Definition at line 79 of file itkHistogramImageToImageMetric.h.
using itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::HistogramSizeType = typename HistogramType::SizeType |
Definition at line 78 of file itkHistogramImageToImageMetric.h.
using itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::HistogramType = Statistics::Histogram< double > |
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.
using itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::InputPointType = typename Superclass::InputPointType |
Definition at line 61 of file itkHistogramImageToImageMetric.h.
using itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::MeasurementVectorType = typename HistogramType::MeasurementVectorType |
Definition at line 77 of file itkHistogramImageToImageMetric.h.
using itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::MeasureType = typename Superclass::MeasureType |
Definition at line 63 of file itkHistogramImageToImageMetric.h.
using itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::MovingImageConstPointerType = typename Superclass::MovingImageConstPointer |
Definition at line 70 of file itkHistogramImageToImageMetric.h.
using itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::MovingImagePixelType = typename Superclass::MovingImageType::PixelType |
Definition at line 68 of file itkHistogramImageToImageMetric.h.
using itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::MovingImageType = typename Superclass::MovingImageType |
Definition at line 67 of file itkHistogramImageToImageMetric.h.
using itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::OutputPointType = typename Superclass::OutputPointType |
Definition at line 62 of file itkHistogramImageToImageMetric.h.
using itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::Pointer = SmartPointer< Self > |
Definition at line 48 of file itkHistogramImageToImageMetric.h.
using itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::RealType = typename Superclass::RealType |
Types transferred from the base class
Definition at line 55 of file itkHistogramImageToImageMetric.h.
using itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::ScalesType = Array< double > |
The scales type.
Definition at line 126 of file itkHistogramImageToImageMetric.h.
using itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::Self = HistogramImageToImageMetric |
Standard class type aliases.
Definition at line 46 of file itkHistogramImageToImageMetric.h.
using itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::Superclass = ImageToImageMetric< TFixedImage, TMovingImage > |
Definition at line 47 of file itkHistogramImageToImageMetric.h.
using itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::TransformJacobianType = typename Superclass::TransformJacobianType |
Definition at line 59 of file itkHistogramImageToImageMetric.h.
using itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::TransformParametersType = typename Superclass::TransformParametersType |
Definition at line 58 of file itkHistogramImageToImageMetric.h.
using itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::TransformPointer = typename Superclass::TransformPointer |
Definition at line 57 of file itkHistogramImageToImageMetric.h.
using itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >::TransformType = typename Superclass::TransformType |
Definition at line 56 of file itkHistogramImageToImageMetric.h.
|
protected |
Constructor is protected to ensure that New()
function is used to create instances.
|
overrideprotecteddefault |
Constructor is protected to ensure that New()
function is used to create instances.
|
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 >.
|
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 >.
|
overrideprotectedvirtual |
PrintSelf function
Reimplemented from itk::CostFunctionTemplate< TInternalComputationValueType >.
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 221 of file itkHistogramImageToImageMetric.h.
|
private |
The derivative step length scales.
Definition at line 224 of file itkHistogramImageToImageMetric.h.
|
private |
Pointer to the joint histogram. This is updated during every call to GetValue()
Definition at line 228 of file itkHistogramImageToImageMetric.h.
|
protected |
The histogram size.
Definition at line 170 of file itkHistogramImageToImageMetric.h.
|
mutableprotected |
The lower bound for samples in the histogram.
Definition at line 173 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 183 of file itkHistogramImageToImageMetric.h.
|
private |
The padding value.
Definition at line 213 of file itkHistogramImageToImageMetric.h.
|
mutableprotected |
The upper bound for samples in the histogram.
Definition at line 176 of file itkHistogramImageToImageMetric.h.
|
protected |
The increase in the upper bound.
Definition at line 179 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 187 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 218 of file itkHistogramImageToImageMetric.h.