![]() |
Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages |
#include <itkCombinationImageToImageMetric.h>
Combines multiple metrics.
This metric is meant to be used in the MultiMetricMultiResolutionImageRegistrationMethod.
NB: while it may seem not logical that the SetInterpolator(arg) sets the interpolator in all submetrics whereas the GetInterpolator() returns GetInterpolator(0) it is logical. If you set the interpolator the same in all metrics, you will receive the correct interpolator with GetInterpolator(0). If you set the interpolator differently in all metrics, the most logical action is to return GetInterpolator(0) when GetInterpolator() is invoked.
Note: If you use Set{Transform,Interpolator etc}(0) or Set{Transform,Interpolator}(), the member variables of the superclass m_{Transform,Interpolator} are set as well. So, it is not strictly necessary to reimplement the functions Get{Transform,Interpolator}(), which return Get{Transform,Interpolator}(0), which would result in the same as returning m_{Transform,Interpolator} anyway. However, if Metric[0] is changed externally the m_{Transform, Interpolator} are not up to date anymore. That's why we chose to reimplement the Get{Transform,Interpolator}() methods.
Definition at line 59 of file itkCombinationImageToImageMetric.h.
Public Types | |
using | ConstPointer = SmartPointer< const Self > |
using | DerivativeValueType = typename DerivativeType::ValueType |
using | FixedImagePixelType = typename FixedImageType::PixelType |
using | FixedPointSetType = PointSet< CoordinateRepresentationType, TFixedImage::ImageDimension, DefaultStaticMeshTraits< CoordinateRepresentationType, TFixedImage::ImageDimension, TFixedImage::ImageDimension, CoordinateRepresentationType, CoordinateRepresentationType, CoordinateRepresentationType > > |
using | HessianType = vnl_sparse_matrix< HessianValueType > |
using | HessianValueType = typename DerivativeType::ValueType |
using | ImageMetricPointer = typename ImageMetricType::Pointer |
using | ImageMetricType = Superclass |
using | MovingImageDerivativeScalesType = FixedArray< double, Self::MovingImageDimension > |
using | MovingImageRegionType = typename MovingImageType::RegionType |
using | MovingPointSetType = PointSet< CoordinateRepresentationType, TMovingImage::ImageDimension, DefaultStaticMeshTraits< CoordinateRepresentationType, TMovingImage::ImageDimension, TMovingImage::ImageDimension, CoordinateRepresentationType, CoordinateRepresentationType, CoordinateRepresentationType > > |
using | Pointer = SmartPointer< Self > |
using | PointSetMetricType = SingleValuedPointSetToPointSetMetric< FixedPointSetType, MovingPointSetType > |
using | Self = CombinationImageToImageMetric |
using | SingleValuedCostFunctionPointer = typename SingleValuedCostFunctionType::Pointer |
using | SingleValuedCostFunctionType = SingleValuedCostFunction |
using | Superclass = AdvancedImageToImageMetric< TFixedImage, TMovingImage > |
using | ThreaderType = itk::PlatformMultiThreader |
using | ThreadInfoType = typename ThreaderType::WorkUnitInfo |
using | TransformPointer = typename TransformType::Pointer |
using | TransformType = typename Superclass::AdvancedTransformType |
![]() | |
using | AdvancedTransformType = AdvancedTransform< ScalarType, FixedImageDimension, MovingImageDimension > |
using | BSplineOrder1TransformPointer = typename BSplineOrder1TransformType::Pointer |
using | BSplineOrder1TransformType = AdvancedBSplineDeformableTransform< ScalarType, FixedImageDimension, 1 > |
using | BSplineOrder2TransformPointer = typename BSplineOrder2TransformType::Pointer |
using | BSplineOrder2TransformType = AdvancedBSplineDeformableTransform< ScalarType, FixedImageDimension, 2 > |
using | BSplineOrder3TransformPointer = typename BSplineOrder3TransformType::Pointer |
using | BSplineOrder3TransformType = AdvancedBSplineDeformableTransform< ScalarType, FixedImageDimension, 3 > |
using | CombinationTransformType = AdvancedCombinationTransform< ScalarType, FixedImageDimension > |
using | ConstPointer = SmartPointer< const Self > |
using | DerivativeValueType = typename DerivativeType::ValueType |
using | FixedImageLimiterOutputType = typename FixedImageLimiterType::OutputType |
using | FixedImageLimiterPointer = typename FixedImageLimiterType::Pointer |
using | FixedImageLimiterType = LimiterFunctionBase< RealType, FixedImageDimension > |
using | FixedImageMaskSpatialObject2Type = ImageMaskSpatialObject< Self::FixedImageDimension > |
using | FixedImagePixelType = typename FixedImageType::PixelType |
using | FixedImagePointer = typename FixedImageType::Pointer |
using | HessianType = vnl_sparse_matrix< HessianValueType > |
using | HessianValueType = typename DerivativeType::ValueType |
using | ImageSampleContainerPointer = typename ImageSamplerType::OutputVectorContainerPointer |
using | ImageSampleContainerType = typename ImageSamplerType::OutputVectorContainerType |
using | ImageSamplerPointer = typename ImageSamplerType::Pointer |
using | ImageSamplerType = ImageSamplerBase< FixedImageType > |
using | MovingImageDerivativeScalesType = FixedArray< double, Self::MovingImageDimension > |
using | MovingImageLimiterOutputType = typename MovingImageLimiterType::OutputType |
using | MovingImageLimiterPointer = typename MovingImageLimiterType::Pointer |
using | MovingImageLimiterType = LimiterFunctionBase< RealType, MovingImageDimension > |
using | MovingImageMaskSpatialObject2Type = ImageMaskSpatialObject< Self::MovingImageDimension > |
using | MovingImagePointer = typename MovingImageType::Pointer |
using | MovingImageRegionType = typename MovingImageType::RegionType |
using | NumberOfParametersType = typename AdvancedTransformType::NumberOfParametersType |
using | Pointer = SmartPointer< Self > |
using | ScalarType = typename TransformType::ScalarType |
using | Self = AdvancedImageToImageMetric |
using | Superclass = ImageToImageMetric< TFixedImage, TMovingImage > |
using | ThreaderType = itk::PlatformMultiThreader |
using | ThreadInfoType = typename ThreaderType::WorkUnitInfo |
Public Member Functions | |
virtual const char * | GetClassName () const |
void | GetDerivative (const ParametersType ¶meters, DerivativeType &derivative) const override |
const FixedImageType * | GetFixedImage () const override |
virtual const FixedImageType * | GetFixedImage (unsigned int pos) const |
const FixedImageMaskType * | GetFixedImageMask () const override |
virtual const FixedImageMaskType * | GetFixedImageMask (unsigned int pos) const |
const FixedImageRegionType & | GetFixedImageRegion () const override |
virtual const FixedImageRegionType & | GetFixedImageRegion (unsigned int pos) const |
const InterpolatorType * | GetInterpolator () const override |
virtual const InterpolatorType * | GetInterpolator (unsigned int pos) const |
SingleValuedCostFunctionType * | GetMetric (unsigned int count) const |
double | GetMetricComputationTime (unsigned int pos) const |
const DerivativeType & | GetMetricDerivative (unsigned int pos) const |
double | GetMetricDerivativeMagnitude (unsigned int pos) const |
double | GetMetricRelativeWeight (unsigned int pos) const |
MeasureType | GetMetricValue (unsigned int pos) const |
double | GetMetricWeight (unsigned int pos) const |
const MovingImageType * | GetMovingImage () const override |
virtual const MovingImageType * | GetMovingImage (unsigned int pos) const |
const MovingImageMaskType * | GetMovingImageMask () const override |
virtual const MovingImageMaskType * | GetMovingImageMask (unsigned int pos) const |
ModifiedTimeType | GetMTime () const override |
virtual unsigned int | GetNumberOfMetrics () const |
const SizeValueType & | GetNumberOfPixelsCounted () const override |
void | GetSelfHessian (const TransformParametersType ¶meters, HessianType &H) const override |
const TransformType * | GetTransform () const override |
virtual const TransformType * | GetTransform (unsigned int pos) const |
bool | GetUseMetric (const unsigned int pos) const |
virtual bool | GetUseRelativeWeights () const |
MeasureType | GetValue (const ParametersType ¶meters) const override |
void | GetValueAndDerivative (const ParametersType ¶meters, MeasureType &value, DerivativeType &derivative) const override |
void | Initialize () override |
ITK_DISALLOW_COPY_AND_MOVE (CombinationImageToImageMetric) | |
itkStaticConstMacro (FixedImageDimension, unsigned int, TFixedImage::ImageDimension) | |
itkStaticConstMacro (MovingImageDimension, unsigned int, TMovingImage::ImageDimension) | |
void | SetFixedImage (const FixedImageType *_arg) override |
virtual void | SetFixedImage (const FixedImageType *_arg, unsigned int pos) |
void | SetFixedImageMask (FixedImageMaskType *_arg) override |
virtual void | SetFixedImageMask (FixedImageMaskType *_arg, unsigned int pos) |
void | SetFixedImageRegion (const FixedImageRegionType _arg) override |
virtual void | SetFixedImageRegion (const FixedImageRegionType _arg, unsigned int pos) |
void | SetInterpolator (InterpolatorType *_arg) override |
virtual void | SetInterpolator (InterpolatorType *_arg, unsigned int pos) |
void | SetMetric (SingleValuedCostFunctionType *metric, unsigned int pos) |
void | SetMetricRelativeWeight (double weight, unsigned int pos) |
void | SetMetricWeight (double weight, unsigned int pos) |
void | SetMovingImage (const MovingImageType *_arg) override |
virtual void | SetMovingImage (const MovingImageType *_arg, unsigned int pos) |
void | SetMovingImageMask (MovingImageMaskType *_arg) override |
virtual void | SetMovingImageMask (MovingImageMaskType *_arg, unsigned int pos) |
void | SetNumberOfMetrics (unsigned int count) |
void | SetTransform (TransformType *_arg) override |
virtual void | SetTransform (TransformType *_arg, unsigned int pos) |
void | SetUseAllMetrics () |
void | SetUseMetric (const bool use, const unsigned int pos) |
virtual void | SetUseRelativeWeights (bool _arg) |
![]() | |
virtual void | BeforeThreadedGetValueAndDerivative (const TransformParametersType ¶meters) const |
virtual const char * | GetClassName () const |
virtual const FixedImageLimiterType * | GetFixedImageLimiter () |
virtual double | GetFixedLimitRangeRatio () const |
virtual ImageSamplerType * | GetImageSampler () const |
virtual const MovingImageDerivativeScalesType & | GetMovingImageDerivativeScales () |
virtual const MovingImageLimiterType * | GetMovingImageLimiter () |
virtual double | GetMovingLimitRangeRatio () const |
virtual double | GetRequiredRatioOfValidSamples () const |
virtual bool | GetScaleGradientWithRespectToMovingImageOrientation () const |
virtual void | GetSelfHessian (const TransformParametersType ¶meters, HessianType &H) const |
const AdvancedTransformType * | GetTransform () const override |
virtual bool | GetUseFixedImageLimiter () const |
virtual bool | GetUseImageSampler () const |
virtual const bool & | GetUseMetricSingleThreaded () |
virtual bool | GetUseMovingImageDerivativeScales () const |
virtual bool | GetUseMovingImageLimiter () const |
virtual const bool & | GetUseMultiThread () |
void | Initialize () override |
ITK_DISALLOW_COPY_AND_MOVE (AdvancedImageToImageMetric) | |
itkStaticConstMacro (FixedImageDimension, unsigned int, TFixedImage::ImageDimension) | |
itkStaticConstMacro (MovingImageDimension, unsigned int, TMovingImage::ImageDimension) | |
virtual void | SetFixedImageLimiter (FixedImageLimiterType *_arg) |
virtual void | SetFixedLimitRangeRatio (double _arg) |
virtual void | SetImageSampler (ImageSamplerType *_arg) |
virtual void | SetMovingImageDerivativeScales (MovingImageDerivativeScalesType _arg) |
virtual void | SetMovingImageLimiter (MovingImageLimiterType *_arg) |
virtual void | SetMovingLimitRangeRatio (double _arg) |
virtual void | SetNumberOfWorkUnits (ThreadIdType numberOfThreads) |
virtual void | SetRequiredRatioOfValidSamples (double _arg) |
virtual void | SetScaleGradientWithRespectToMovingImageOrientation (bool _arg) |
virtual void | SetTransform (AdvancedTransformType *arg) |
virtual void | SetUseMetricSingleThreaded (bool _arg) |
virtual void | SetUseMovingImageDerivativeScales (bool _arg) |
virtual void | SetUseMultiThread (bool _arg) |
virtual void | UseMetricSingleThreadedOff () |
virtual void | UseMetricSingleThreadedOn () |
virtual void | UseMultiThreadOff () |
virtual void | UseMultiThreadOn () |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
CombinationImageToImageMetric () | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
~CombinationImageToImageMetric () override=default | |
![]() | |
AdvancedImageToImageMetric () | |
virtual void | AfterThreadedGetValue (MeasureType &value) const |
virtual void | AfterThreadedGetValueAndDerivative (MeasureType &value, DerivativeType &derivative) const |
virtual void | CheckForAdvancedTransform () |
virtual void | CheckForBSplineInterpolator () |
virtual void | CheckForBSplineTransform () const |
virtual void | CheckNumberOfSamples (unsigned long wanted, unsigned long found) const |
virtual bool | EvaluateMovingImageValueAndDerivative (const MovingImagePointType &mappedPoint, RealType &movingImageValue, MovingImageDerivativeType *gradient) const |
virtual bool | EvaluateTransformJacobian (const FixedImagePointType &fixedImagePoint, TransformJacobianType &jacobian, NonZeroJacobianIndicesType &nzji) const |
virtual void | EvaluateTransformJacobianInnerProduct (const TransformJacobianType &jacobian, const MovingImageDerivativeType &movingImageDerivative, DerivativeType &imageJacobian) const |
bool | FastEvaluateMovingImageValueAndDerivative (const MovingImagePointType &mappedPoint, RealType &movingImageValue, MovingImageDerivativeType *gradient, const ThreadIdType threadId) const |
virtual void | InitializeImageSampler () |
virtual void | InitializeLimiters () |
virtual void | InitializeThreadingParameters () const |
virtual bool | IsInsideMovingMask (const MovingImagePointType &point) const |
itkAlignedTypedef (ITK_CACHE_LINE_ALIGNMENT, PaddedGetValueAndDerivativePerThreadStruct, AlignedGetValueAndDerivativePerThreadStruct) | |
itkAlignedTypedef (ITK_CACHE_LINE_ALIGNMENT, PaddedGetValuePerThreadStruct, AlignedGetValuePerThreadStruct) | |
itkPadStruct (ITK_CACHE_LINE_ALIGNMENT, GetValueAndDerivativePerThreadStruct, PaddedGetValueAndDerivativePerThreadStruct) | |
itkPadStruct (ITK_CACHE_LINE_ALIGNMENT, GetValuePerThreadStruct, PaddedGetValuePerThreadStruct) | |
void | LaunchGetValueAndDerivativeThreaderCallback () const |
void | LaunchGetValueThreaderCallback () const |
void | PrintSelf (std::ostream &os, Indent indent) const override |
virtual void | SetUseFixedImageLimiter (bool _arg) |
virtual void | SetUseImageSampler (bool _arg) |
virtual void | SetUseMovingImageLimiter (bool _arg) |
virtual void | ThreadedGetValue (ThreadIdType threadID) |
virtual void | ThreadedGetValueAndDerivative (ThreadIdType threadID) |
MovingImagePointType | TransformPoint (const FixedImagePointType &fixedImagePoint) const |
~AdvancedImageToImageMetric () override=default | |
Private Member Functions | |
double | GetFinalMetricWeight (unsigned int pos) const |
void | InitializeThreadingParameters () const override |
Additional Inherited Members | |
![]() | |
using | BSplineInterpolatorFloatPointer = typename BSplineInterpolatorFloatType::Pointer |
using | BSplineInterpolatorFloatType = BSplineInterpolateImageFunction< MovingImageType, CoordinateRepresentationType, float > |
using | BSplineInterpolatorPointer = typename BSplineInterpolatorType::Pointer |
using | BSplineInterpolatorType = BSplineInterpolateImageFunction< MovingImageType, CoordinateRepresentationType, double > |
using | CentralDifferenceGradientFilterPointer = typename CentralDifferenceGradientFilterType::Pointer |
using | CentralDifferenceGradientFilterType = GradientImageFilter< MovingImageType, RealType, RealType > |
using | FixedImageIndexType = typename FixedImageType::IndexType |
using | FixedImageIndexValueType = typename FixedImageIndexType::IndexValueType |
using | FixedImagePointType = typename TransformType::InputPointType |
using | LinearInterpolatorPointer = typename LinearInterpolatorType::Pointer |
using | LinearInterpolatorType = AdvancedLinearInterpolateImageFunction< MovingImageType, CoordinateRepresentationType > |
using | MovingImageContinuousIndexType = typename InterpolatorType::ContinuousIndexType |
using | MovingImageDerivativeType = typename BSplineInterpolatorType::CovariantVectorType |
using | MovingImageIndexType = typename MovingImageType::IndexType |
using | MovingImagePointType = typename TransformType::OutputPointType |
using | NonZeroJacobianIndicesType = typename AdvancedTransformType::NonZeroJacobianIndicesType |
using | ReducedBSplineInterpolatorPointer = typename ReducedBSplineInterpolatorType::Pointer |
using | ReducedBSplineInterpolatorType = ReducedDimensionBSplineInterpolateImageFunction< MovingImageType, CoordinateRepresentationType, double > |
![]() | |
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION | AccumulateDerivativesThreaderCallback (void *arg) |
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION | GetValueAndDerivativeThreaderCallback (void *arg) |
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION | GetValueThreaderCallback (void *arg) |
using itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::ConstPointer = SmartPointer<const Self> |
Definition at line 68 of file itkCombinationImageToImageMetric.h.
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::DerivativeValueType = typename DerivativeType::ValueType |
Definition at line 131 of file itkAdvancedImageToImageMetric.h.
using itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::FixedImagePixelType = typename FixedImageType::PixelType |
Definition at line 136 of file itkCombinationImageToImageMetric.h.
using itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::FixedPointSetType = PointSet<CoordinateRepresentationType, TFixedImage::ImageDimension, DefaultStaticMeshTraits<CoordinateRepresentationType, TFixedImage::ImageDimension, TFixedImage::ImageDimension, CoordinateRepresentationType, CoordinateRepresentationType, CoordinateRepresentationType> > |
Typedef for the PointSetMetric.
Definition at line 141 of file itkCombinationImageToImageMetric.h.
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::HessianType = vnl_sparse_matrix<HessianValueType> |
Definition at line 172 of file itkAdvancedImageToImageMetric.h.
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::HessianValueType = typename DerivativeType::ValueType |
Hessian type; for SelfHessian (experimental feature)
Definition at line 171 of file itkAdvancedImageToImageMetric.h.
using itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::ImageMetricPointer = typename ImageMetricType::Pointer |
Definition at line 132 of file itkCombinationImageToImageMetric.h.
using itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::ImageMetricType = Superclass |
using typename Superclass::ImageSamplerType; using typename Superclass::ImageSamplerPointer; using typename Superclass::ImageSampleContainerType; using typename Superclass::ImageSampleContainerPointer; using typename Superclass::FixedImageLimiterType; using typename Superclass::FixedImageLimiterOutputType; using typename Superclass::MovingImageLimiterType; using typename Superclass::MovingImageLimiterOutputType; using typename Superclass::ScalarType; using typename Superclass::AdvancedTransformType; Typedefs for the metrics.
Definition at line 131 of file itkCombinationImageToImageMetric.h.
using itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::MovingImageDerivativeScalesType = FixedArray<double, Self::MovingImageDimension> |
Definition at line 138 of file itkCombinationImageToImageMetric.h.
using itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::MovingImageRegionType = typename MovingImageType::RegionType |
Definition at line 137 of file itkCombinationImageToImageMetric.h.
using itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::MovingPointSetType = PointSet<CoordinateRepresentationType, TMovingImage::ImageDimension, DefaultStaticMeshTraits<CoordinateRepresentationType, TMovingImage::ImageDimension, TMovingImage::ImageDimension, CoordinateRepresentationType, CoordinateRepresentationType, CoordinateRepresentationType> > |
Definition at line 149 of file itkCombinationImageToImageMetric.h.
using itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::Pointer = SmartPointer<Self> |
Definition at line 67 of file itkCombinationImageToImageMetric.h.
using itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::PointSetMetricType = SingleValuedPointSetToPointSetMetric<FixedPointSetType, MovingPointSetType> |
Definition at line 157 of file itkCombinationImageToImageMetric.h.
using itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::Self = CombinationImageToImageMetric |
Standard class typedefs.
Definition at line 65 of file itkCombinationImageToImageMetric.h.
using itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::SingleValuedCostFunctionPointer = typename SingleValuedCostFunctionType::Pointer |
Definition at line 134 of file itkCombinationImageToImageMetric.h.
using itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::SingleValuedCostFunctionType = SingleValuedCostFunction |
Definition at line 133 of file itkCombinationImageToImageMetric.h.
using itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::Superclass = AdvancedImageToImageMetric<TFixedImage, TMovingImage> |
Definition at line 66 of file itkCombinationImageToImageMetric.h.
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::ThreaderType = itk::PlatformMultiThreader |
Typedefs for multi-threading.
Definition at line 175 of file itkAdvancedImageToImageMetric.h.
using itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >::ThreadInfoType = typename ThreaderType::WorkUnitInfo |
Definition at line 176 of file itkAdvancedImageToImageMetric.h.
using itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::TransformPointer = typename TransformType::Pointer |
Definition at line 91 of file itkCombinationImageToImageMetric.h.
using itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::TransformType = typename Superclass::AdvancedTransformType |
Definition at line 90 of file itkCombinationImageToImageMetric.h.
|
protected |
|
overrideprotecteddefault |
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >.
|
override |
The GetDerivative()-method.
|
private |
Compute the current metric weight, given the user selected strategy and derivative magnitude.
|
inlineoverride |
Return FixedImage 0
Definition at line 310 of file itkCombinationImageToImageMetric.h.
|
virtual |
Returns the fixedImage set in a specific metric. If the submetric is a singlevalued costfunction a zero pointer will be returned
|
inlineoverride |
Return FixedImageMask 0
Definition at line 332 of file itkCombinationImageToImageMetric.h.
|
virtual |
Returns the fixedImageMask set in a specific metric. If the submetric is a singlevalued costfunction a zero pointer will be returned
|
inlineoverride |
Return FixedImageRegion 0
Definition at line 354 of file itkCombinationImageToImageMetric.h.
|
virtual |
Returns the fixedImageRegion set in a specific metric. If the submetric is a singlevalued costfunction a region with size zero will be returned
|
inlineoverride |
Return Interpolator 0
Definition at line 288 of file itkCombinationImageToImageMetric.h.
|
virtual |
Returns the interpolator set in a specific metric. If the submetric is a singlevalued costfunction a zero pointer will be returned.
SingleValuedCostFunctionType * itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GetMetric | ( | unsigned int | count | ) | const |
Get metric i.
double itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GetMetricComputationTime | ( | unsigned int | pos | ) | const |
Get the last computed computation time for metric i.
const DerivativeType & itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GetMetricDerivative | ( | unsigned int | pos | ) | const |
Get the last computed derivative for metric i.
double itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GetMetricDerivativeMagnitude | ( | unsigned int | pos | ) | const |
Get the last computed derivative magnitude for metric i.
double itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GetMetricRelativeWeight | ( | unsigned int | pos | ) | const |
Get the relative weight for metric i.
MeasureType itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GetMetricValue | ( | unsigned int | pos | ) | const |
Get the last computed value for metric i.
double itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GetMetricWeight | ( | unsigned int | pos | ) | const |
Get the weight for metric i.
|
inlineoverride |
Return MovingImage 0
Definition at line 376 of file itkCombinationImageToImageMetric.h.
|
virtual |
Returns the movingImage set in a specific metric. If the submetric is a singlevalued costfunction a zero pointer will be returned
|
inlineoverride |
Return MovingImageMask 0
Definition at line 398 of file itkCombinationImageToImageMetric.h.
|
virtual |
Returns the movingImageMask set in a specific metric. If the submetric is a singlevalued costfunction a zero pointer will be returned
|
override |
Method to return the latest modified time of this object or any of its cached ivars.
|
virtual |
Get the number of metrics to combine.
|
override |
Get the number of pixels considered in the computation. Return the sum of pixels counted by all metrics.
|
overridevirtual |
Experimental feature: compute SelfHessian.
Reimplemented from itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >.
|
inlineoverride |
Return Transform 0
Definition at line 266 of file itkCombinationImageToImageMetric.h.
|
virtual |
Returns the transform set in a specific metric. If the submetric is a singlevalued costfunction a zero pointer will be returned.
bool itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::GetUseMetric | ( | const unsigned int | pos | ) | const |
Get if this metric is used.
|
virtual |
|
override |
Combine all sub metrics by adding them. The GetValue()-method.
|
override |
The GetValueAndDerivative()-method.
|
override |
Pass initialization to all sub metrics.
|
overrideprivatevirtual |
Initialize some multi-threading related parameters. Overrides function in AdvancedImageToImageMetric, because here we use other parameters.
Reimplemented from itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >.
itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::ITK_DISALLOW_COPY_AND_MOVE | ( | CombinationImageToImageMetric< TFixedImage, TMovingImage > | ) |
itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::itkStaticConstMacro | ( | FixedImageDimension | , |
unsigned int | , | ||
TFixedImage::ImageDimension | |||
) |
itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::itkStaticConstMacro | ( | MovingImageDimension | , |
unsigned int | , | ||
TMovingImage::ImageDimension | |||
) |
Constants for the image dimensions
|
static |
Define the New() method
|
overrideprotected |
|
override |
Pass the fixed image to all sub metrics.
|
virtual |
Pass a fixed image to a specific metric
|
override |
Pass the fixed image mask to all sub metrics.
|
virtual |
Pass a fixed image mask to a specific metric
|
override |
Pass the fixed image region to all sub metrics.
|
virtual |
Pass a fixed image region to a specific metric.
|
override |
Pass the interpolator to all sub metrics.
|
virtual |
Pass an interpolator to a specific metric
void itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::SetMetric | ( | SingleValuedCostFunctionType * | metric, |
unsigned int | pos | ||
) |
Set metric i. It may be a SingleValuedCostFunction, instead of a ImageToImageMetric, but the first one should be an ImageToImageMetric in all cases.
void itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::SetMetricRelativeWeight | ( | double | weight, |
unsigned int | pos | ||
) |
Set the relative weight for metric i.
void itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::SetMetricWeight | ( | double | weight, |
unsigned int | pos | ||
) |
Set the weight for metric i.
|
override |
Pass the moving image to all sub metrics.
|
virtual |
Pass a moving image to a specific metric
|
override |
Pass the moving image mask to all sub metrics.
|
virtual |
Pass a moving image mask to a specific metric
void itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::SetNumberOfMetrics | ( | unsigned int | count | ) |
Get and set the metrics and their weights. Set the number of metrics to combine.
|
overridevirtual |
Set/Get functions for the metric components Pass the transform to all sub metrics.
Reimplemented from itk::AdvancedImageToImageMetric< TFixedImage, TMovingImage >.
|
virtual |
Pass a transform to a specific metric. Only use this if you really know what you are doing.
In fact, in general it makes no sense to specify a different transform for every metric, because in the GetValue/GetDerivative methods, the same set of parameters will be used in all cases. Also, SetTransformParameters and GetNumberOfParameters may give unpredictable results if you use this method. They only refer to the first transform.
void itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::SetUseAllMetrics | ( | ) |
Use all metrics.
void itk::CombinationImageToImageMetric< TFixedImage, TMovingImage >::SetUseMetric | ( | const bool | use, |
const unsigned int | pos | ||
) |
Select which metrics are used. This is useful in case you want to compute a certain measure, but not actually use it during the registration. By default all metrics that are set, are also used.
|
virtual |
Set and Get the UseRelativeWeights variable.
|
mutableprotected |
Definition at line 458 of file itkCombinationImageToImageMetric.h.
|
mutableprotected |
Definition at line 456 of file itkCombinationImageToImageMetric.h.
|
mutableprotected |
Definition at line 457 of file itkCombinationImageToImageMetric.h.
|
protected |
Definition at line 452 of file itkCombinationImageToImageMetric.h.
|
protected |
Definition at line 450 of file itkCombinationImageToImageMetric.h.
|
mutableprotected |
Definition at line 455 of file itkCombinationImageToImageMetric.h.
|
protected |
Definition at line 451 of file itkCombinationImageToImageMetric.h.
|
protected |
Definition at line 462 of file itkCombinationImageToImageMetric.h.
|
protected |
Dummy image region and derivatives.
Definition at line 461 of file itkCombinationImageToImageMetric.h.
|
protected |
Store the metrics and the corresponding weights.
Definition at line 449 of file itkCombinationImageToImageMetric.h.
|
protected |
Definition at line 454 of file itkCombinationImageToImageMetric.h.
|
protected |
Definition at line 453 of file itkCombinationImageToImageMetric.h.
Generated on Wed 12 Apr 2023
for elastix by ![]() |
![]() |