ITK
6.0.0
Insight Toolkit
|
#include <itkCompareHistogramImageToImageMetric.h>
Compares Histograms between two images to be registered to a Training Histogram.
This class is templated over the type of the fixed and moving images to be compared.
This metric computes the similarity between the histogram produced by two images overlapping and a training histogram.
It is to be sub-classed by the method of comparing the histograms.
Generally, the histogram from the training data is to be computed in exactly the same way as the histogram from the images to be compared are computed. Thus, the user can set the interpolator, region, two training images and the transform and the training histogram will be formed. OR, the user can simply calculate the training histogram separately and set it.
Definition at line 56 of file itkCompareHistogramImageToImageMetric.h.
Protected Member Functions | |
MeasureType | EvaluateMeasure (HistogramType &histogram) const override=0 |
void | FormTrainingHistogram () |
CompareHistogramImageToImageMetric () | |
~CompareHistogramImageToImageMetric () override=default | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
Protected Member Functions inherited from itk::HistogramImageToImageMetric< TFixedImage, TMovingImage > | |
void | ComputeHistogram (const TransformParametersType ¶meters, HistogramType &histogram) const |
void | ComputeHistogram (const TransformParametersType ¶meters, unsigned int parameter, double step, HistogramType &histogram) const |
void | CopyHistogram (HistogramType &target, HistogramType &source) const |
virtual MeasureType | EvaluateMeasure (HistogramType &histogram) const =0 |
void | PrintSelf (std::ostream &os, Indent indent) const override |
HistogramImageToImageMetric () | |
~HistogramImageToImageMetric () override=default | |
Protected Member Functions inherited from itk::ImageToImageMetric< TFixedImage, TMovingImage > | |
virtual void | ComputeImageDerivatives (const MovingImagePointType &mappedPoint, ImageDerivativesType &gradient, ThreadIdType threadId) const |
void | GetValueAndDerivativeMultiThreadedInitiate () const |
void | GetValueAndDerivativeMultiThreadedPostProcessInitiate () const |
virtual void | GetValueAndDerivativeThread (ThreadIdType threadId) const |
virtual void | GetValueAndDerivativeThreadPostProcess (ThreadIdType, bool) const |
virtual void | GetValueAndDerivativeThreadPreProcess (ThreadIdType, bool) const |
virtual bool | GetValueAndDerivativeThreadProcessSample (ThreadIdType, SizeValueType, const MovingImagePointType &, double, const ImageDerivativesType &) const |
ImageToImageMetric () | |
virtual void | PreComputeTransformValues () |
void | PrintSelf (std::ostream &os, Indent indent) const override |
virtual void | SampleFixedImageIndexes (FixedImageSampleContainer &samples) const |
virtual void | SampleFixedImageRegion (FixedImageSampleContainer &samples) const |
virtual void | SampleFullFixedImageRegion (FixedImageSampleContainer &samples) const |
virtual void | SynchronizeTransforms () const |
virtual void | TransformPoint (unsigned int sampleNumber, MovingImagePointType &mappedPoint, bool &sampleOk, double &movingImageValue, ThreadIdType threadId) const |
virtual void | TransformPointWithDerivatives (unsigned int sampleNumber, MovingImagePointType &mappedPoint, bool &sampleOk, double &movingImageValue, ImageDerivativesType &movingImageGradient, ThreadIdType threadId) const |
~ImageToImageMetric () override=default | |
void | GetValueMultiThreadedInitiate () const |
void | GetValueMultiThreadedPostProcessInitiate () const |
virtual void | GetValueThread (ThreadIdType threadId) const |
virtual void | GetValueThreadPreProcess (ThreadIdType, bool) const |
virtual bool | GetValueThreadProcessSample (ThreadIdType, SizeValueType, const MovingImagePointType &, double) const |
virtual void | GetValueThreadPostProcess (ThreadIdType, bool) const |
Protected Member Functions inherited from itk::SingleValuedCostFunction | |
SingleValuedCostFunction ()=default | |
~SingleValuedCostFunction () override | |
Protected Member Functions inherited from itk::CostFunctionTemplate< double > | |
CostFunctionTemplate ()=default | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
~CostFunctionTemplate () override=default | |
Protected Member Functions inherited from itk::Object | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
void | PrintSelf (std::ostream &os, Indent indent) const override |
virtual void | SetTimeStamp (const TimeStamp &timeStamp) |
~Object () override | |
Protected Member Functions inherited from itk::LightObject | |
virtual LightObject::Pointer | InternalClone () const |
LightObject () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintSelf (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
using itk::CompareHistogramImageToImageMetric< TFixedImage, TMovingImage >::ConstPointer = SmartPointer<const Self> |
Definition at line 66 of file itkCompareHistogramImageToImageMetric.h.
using itk::CompareHistogramImageToImageMetric< TFixedImage, TMovingImage >::HistogramAbsoluteFrequencyType = typename HistogramType::AbsoluteFrequencyType |
Definition at line 91 of file itkCompareHistogramImageToImageMetric.h.
using itk::CompareHistogramImageToImageMetric< TFixedImage, TMovingImage >::HistogramFrequencyType = HistogramAbsoluteFrequencyType |
Definition at line 92 of file itkCompareHistogramImageToImageMetric.h.
using itk::CompareHistogramImageToImageMetric< TFixedImage, TMovingImage >::HistogramIteratorType = typename HistogramType::Iterator |
Definition at line 94 of file itkCompareHistogramImageToImageMetric.h.
using itk::CompareHistogramImageToImageMetric< TFixedImage, TMovingImage >::HistogramMeasurementVectorType = typename HistogramType::MeasurementVectorType |
Definition at line 90 of file itkCompareHistogramImageToImageMetric.h.
using itk::CompareHistogramImageToImageMetric< TFixedImage, TMovingImage >::HistogramPointerType = typename HistogramType::Pointer |
Definition at line 95 of file itkCompareHistogramImageToImageMetric.h.
using itk::CompareHistogramImageToImageMetric< TFixedImage, TMovingImage >::Pointer = SmartPointer<Self> |
Definition at line 65 of file itkCompareHistogramImageToImageMetric.h.
using itk::CompareHistogramImageToImageMetric< TFixedImage, TMovingImage >::Self = CompareHistogramImageToImageMetric |
Standard class type aliases.
Definition at line 63 of file itkCompareHistogramImageToImageMetric.h.
using itk::CompareHistogramImageToImageMetric< TFixedImage, TMovingImage >::Superclass = HistogramImageToImageMetric<TFixedImage, TMovingImage> |
Definition at line 64 of file itkCompareHistogramImageToImageMetric.h.
using itk::CompareHistogramImageToImageMetric< TFixedImage, TMovingImage >::TransformConstPointer = typename TransformType::ConstPointer |
Definition at line 75 of file itkCompareHistogramImageToImageMetric.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.
|
overrideprotectedpure virtual |
Evaluates the comparison histogram metric. All sub-classes must re-implement method.
Implements itk::HistogramImageToImageMetric< TFixedImage, TMovingImage >.
Implemented in itk::KullbackLeiblerCompareHistogramImageToImageMetric< TFixedImage, TMovingImage >.
|
protected |
Form the Histogram for the Training data
|
virtual |
Get/Set the Interpolator.
|
virtual |
Get/Set the Training Transform.
|
overridevirtual |
Reimplemented from itk::SingleValuedCostFunction.
Reimplemented in itk::KullbackLeiblerCompareHistogramImageToImageMetric< TFixedImage, TMovingImage >.
|
inlineoverridevirtual |
Return the number of parameters required by the Transform
Implements itk::CostFunctionTemplate< double >.
Reimplemented in itk::KullbackLeiblerCompareHistogramImageToImageMetric< TFixedImage, TMovingImage >.
Definition at line 134 of file itkCompareHistogramImageToImageMetric.h.
|
virtual |
Get/Set the Training Fixed Image.
|
virtual |
Get/Set the region over which the training histogram will be computed
|
virtual |
Get/Set the histogram to be used in the metric calculation
|
virtual |
Get/Set the Training Moving Image.
|
overridevirtual |
Forms the histogram of the training images to prepare to evaluate the metric. Must set all parameters first.
Reimplemented from itk::ImageToImageMetric< TFixedImage, TMovingImage >.
Reimplemented in itk::KullbackLeiblerCompareHistogramImageToImageMetric< TFixedImage, TMovingImage >.
|
overrideprotectedvirtual |
Constructor is protected to ensure that New()
function is used to create instances.
Reimplemented from itk::Object.
Reimplemented in itk::KullbackLeiblerCompareHistogramImageToImageMetric< TFixedImage, TMovingImage >.
|
virtual |
Get/Set the Training Fixed Image.
|
virtual |
Get/Set the region over which the training histogram will be computed
|
virtual |
Get/Set the histogram to be used in the metric calculation
|
virtual |
Get/Set the Interpolator.
|
virtual |
Get/Set the Training Moving Image.
|
virtual |
Get/Set the Training Transform.
|
private |
Definition at line 163 of file itkCompareHistogramImageToImageMetric.h.
|
private |
Definition at line 167 of file itkCompareHistogramImageToImageMetric.h.
|
private |
Definition at line 168 of file itkCompareHistogramImageToImageMetric.h.
|
private |
Definition at line 166 of file itkCompareHistogramImageToImageMetric.h.
|
private |
Definition at line 164 of file itkCompareHistogramImageToImageMetric.h.
|
private |
Definition at line 165 of file itkCompareHistogramImageToImageMetric.h.