Inheritance diagram for itk::MatchCardinalityImageToImageMetric< TFixedImage, TMovingImage >:
This Class is templated over the type of the fixed and moving images to be compared.
This metric computes cardinality of the set of pixels that match exactly between the moving and fixed images. The spatial correspondance between both images is established through a Transform. Pixel values are taken from the Moving image. Their positions are mapped to the Fixed image and result in general in non-grid position on it. Values at these non-grid position of the Fixed image are interpolated using a user-selected Interpolator.
This metric is designed for matching label maps. All pixel mismatches are considered equal whether they are between label 1 and label 2 or between label 1 and label 500. In other words, the magnitude of an individual label mismatch is not relevant, or the occurence of a label mismatch is important.
Given the nature of label maps, a nearest neighbor interpolator is the preferred interpolator.
The metric measure can measure the number of pixel matches (pixels with exactly the same label) or pixel mismatches (pixels with different labels). The returned metric value is the number of pixel matches (or mismatches) normalized by the number of pixels considered. The number of pixel considered is a function of the number of pixels in the overlap of the fixed and moving image buffers conditional on any assigned masks.
|
Public Types |
typedef SmartPointer< const
Self > | ConstPointer |
typedef SmartPointer< const
Self > | ConstPointer |
| typedef Superclass::ParametersValueType | CoordinateRepresentationType |
| typedef Superclass::ParametersValueType | CoordinateRepresentationType |
| typedef Superclass::DerivativeType | DerivativeType |
| typedef Superclass::DerivativeType | DerivativeType |
| typedef Superclass::FixedImageConstPointer | FixedImageConstPointer |
| typedef Superclass::FixedImageConstPointer | FixedImageConstPointer |
| typedef std::vector< FixedImageIndexType > | FixedImageIndexContainer |
| typedef FixedImageType::IndexType | FixedImageIndexType |
| typedef FixedImageIndexType::IndexValueType | FixedImageIndexValueType |
| typedef FixedImageMaskType::Pointer | FixedImageMaskPointer |
| typedef FixedImageMaskType::Pointer | FixedImageMaskPointer |
| typedef SpatialObject< itkGetStaticConstMacro(FixedImageDimension) > | FixedImageMaskType |
| typedef SpatialObject< itkGetStaticConstMacro(FixedImageDimension) > | FixedImageMaskType |
| typedef TFixedImage::PixelType | FixedImagePixelType |
| typedef TransformType::InputPointType | FixedImagePointType |
| typedef Superclass::FixedImageRegionType | FixedImageRegionType |
| typedef Superclass::FixedImageRegionType | FixedImageRegionType |
| typedef Superclass::FixedImageType | FixedImageType |
| typedef Superclass::FixedImageType | FixedImageType |
| typedef Superclass::GradientPixelType | GradientPixelType |
| typedef Superclass::GradientPixelType | GradientPixelType |
| typedef Superclass::InputPointType | InputPointType |
| typedef InterpolatorType::Pointer | InterpolatorPointer |
| typedef InterpolatorType::Pointer | InterpolatorPointer |
typedef InterpolateImageFunction<
MovingImageType, CoordinateRepresentationType > | InterpolatorType |
typedef InterpolateImageFunction<
MovingImageType, CoordinateRepresentationType > | InterpolatorType |
| typedef Superclass::MeasureType | MeasureType |
| typedef Superclass::MeasureType | MeasureType |
| typedef Superclass::MovingImageConstPointer | MovingImageConstPointer |
| typedef Superclass::MovingImageConstPointer | MovingImageConstPointer |
| typedef MovingImageType::IndexType | MovingImageIndexType |
| typedef MovingImageMaskType::Pointer | MovingImageMaskPointer |
| typedef MovingImageMaskType::Pointer | MovingImageMaskPointer |
| typedef SpatialObject< itkGetStaticConstMacro(MovingImageDimension) > | MovingImageMaskType |
| typedef SpatialObject< itkGetStaticConstMacro(MovingImageDimension) > | MovingImageMaskType |
| typedef TMovingImage::PixelType | MovingImagePixelType |
| typedef TMovingImage::PixelType | MovingImagePixelType |
| typedef TransformType::OutputPointType | MovingImagePointType |
| typedef Superclass::MovingImageType | MovingImageType |
| typedef Superclass::MovingImageType | MovingImageType |
| typedef Superclass::OutputPointType | OutputPointType |
| typedef Superclass::ParametersType | ParametersType |
| typedef Superclass::ParametersType | ParametersType |
| typedef double | ParametersValueType |
| typedef SmartPointer< Self > | Pointer |
| typedef SmartPointer< Self > | Pointer |
| typedef Superclass::RealType | RealType |
| typedef Superclass::RealType | RealType |
| typedef MatchCardinalityImageToImageMetric | Self |
| typedef MatchCardinalityImageToImageMetric | Self |
typedef ImageToImageMetric<
TFixedImage, TMovingImage > | Superclass |
typedef ImageToImageMetric<
TFixedImage, TMovingImage > | Superclass |
| typedef Superclass::TransformJacobianType | TransformJacobianType |
| typedef Superclass::TransformJacobianType | TransformJacobianType |
| typedef Superclass::TransformParametersType | TransformParametersType |
| typedef Superclass::TransformParametersType | TransformParametersType |
| typedef Superclass::TransformPointer | TransformPointer |
| typedef Superclass::TransformPointer | TransformPointer |
| typedef Superclass::TransformType | TransformType |
| typedef Superclass::TransformType | TransformType |
|
| typedef GradientImageFilterType::Pointer | GradientImageFilterPointer |
typedef GradientRecursiveGaussianImageFilter<
MovingImageType, GradientImageType > | GradientImageFilterType |
| typedef SmartPointer< GradientImageType > | GradientImagePointer |
typedef Image< GradientPixelType,
itkGetStaticConstMacro(MovingImageDimension)> | GradientImageType |
|
| typedef GradientImageFilterType::Pointer | GradientImageFilterPointer |
typedef GradientRecursiveGaussianImageFilter<
MovingImageType, GradientImageType > | GradientImageFilterType |
| typedef SmartPointer< GradientImageType > | GradientImagePointer |
typedef Image< GradientPixelType,
itkGetStaticConstMacro(MovingImageDimension)> | GradientImageType |
Public Member Functions |
| virtual void | ComputeGradient (void) |
| virtual void | ComputeGradient () |
| virtual LightObject::Pointer | CreateAnother () const |
| virtual void | DebugOff () const |
| virtual void | DebugOn () const |
| virtual void | Delete () |
| Command * | GetCommand (unsigned long tag) |
| bool | GetDebug () const |
| virtual void | GetDerivative (const ParametersType ¶meters, DerivativeType &derivative) const=0 |
| virtual const FixedImageType * | GetFixedImage () |
| virtual const FixedImageType * | GetFixedImage () |
| virtual const FixedImageRegionType & | GetFixedImageRegion () |
| virtual const FixedImageRegionType & | GetFixedImageRegion () |
| virtual const GradientImageType * | GetGradientImage () |
| virtual const GradientImageType * | GetGradientImage () |
| virtual const InterpolatorType * | GetInterpolator () |
| virtual const InterpolatorType * | GetInterpolator () |
| const MetaDataDictionary & | GetMetaDataDictionary (void) const |
| MetaDataDictionary & | GetMetaDataDictionary (void) |
| virtual const MovingImageType * | GetMovingImage () |
| virtual const MovingImageType * | GetMovingImage () |
| virtual unsigned long | GetMTime () const |
| MultiThreader * | GetMultiThreader () |
| MultiThreader * | GetMultiThreader () |
| virtual const char * | GetNameOfClass () const |
| virtual const char * | GetNameOfClass () const |
| virtual const unsigned long & | GetNumberOfFixedImageSamples () |
| unsigned int | GetNumberOfParameters (void) const |
| unsigned int | GetNumberOfParameters (void) const |
| virtual const unsigned long & | GetNumberOfPixelsCounted () |
| virtual const unsigned long & | GetNumberOfPixelsCounted () |
| unsigned long | GetNumberOfSpatialSamples (void) |
| virtual int | GetReferenceCount () const |
| virtual const TransformType * | GetTransform () |
| virtual const TransformType * | GetTransform () |
| virtual MeasureType | GetValue (const ParametersType ¶meters) const=0 |
| MeasureType | GetValue (const TransformParametersType ¶meters) const |
| MeasureType | GetValue (const TransformParametersType ¶meters) const |
| bool | HasObserver (const EventObject &event) const |
| virtual void | Initialize (void) throw ( ExceptionObject ) |
| virtual void | Initialize (void) throw ( ExceptionObject ) |
| void | InvokeEvent (const EventObject &) const |
| void | InvokeEvent (const EventObject &) |
| virtual void | Modified () const |
| virtual void | MultiThreadingInitialize (void) throw ( ExceptionObject ) |
| void | Print (std::ostream &os, Indent indent=0) const |
| virtual void | Register () const |
| void | RemoveAllObservers () |
| void | RemoveObserver (unsigned long tag) |
| void | SetDebug (bool debugFlag) const |
| virtual void | SetFixedImage (const FixedImageType *_arg) |
| virtual void | SetFixedImage (const FixedImageType *_arg) |
| void | SetFixedImageIndexes (const FixedImageIndexContainer &indexes) |
| virtual void | SetFixedImageRegion (FixedImageRegionType _arg) |
| virtual void | SetFixedImageRegion (FixedImageRegionType _arg) |
| virtual void | SetInterpolator (InterpolatorType *_arg) |
| virtual void | SetInterpolator (InterpolatorType *_arg) |
| void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
| virtual void | SetMovingImage (const MovingImageType *_arg) |
| virtual void | SetMovingImage (const MovingImageType *_arg) |
| void | SetNumberOfSpatialSamples (unsigned long num) |
| virtual void | SetReferenceCount (int) |
| virtual void | SetTransform (TransformType *_arg) |
| virtual void | SetTransform (TransformType *_arg) |
| void | SetTransformParameters (const ParametersType ¶meters) const |
| void | SetTransformParameters (const ParametersType ¶meters) const |
| virtual void | UnRegister () const |
|
| unsigned long | AddObserver (const EventObject &event, Command *) const |
| unsigned long | AddObserver (const EventObject &event, Command *) |
|
| virtual void | ComputeGradientOff () |
| virtual void | ComputeGradientOn () |
| virtual const bool & | GetComputeGradient () |
| virtual void | SetComputeGradient (bool _arg) |
|
| virtual void | ComputeGradientOff () |
| virtual void | ComputeGradientOn () |
| virtual const bool & | GetComputeGradient () |
| virtual void | SetComputeGradient (bool _arg) |
|
| void | GetDerivative (const TransformParametersType &, DerivativeType &derivative) const |
|
| void | GetDerivative (const TransformParametersType &, DerivativeType &derivative) const |
|
| virtual const FixedImageMaskType * | GetFixedImageMask () |
| virtual void | SetFixedImageMask (FixedImageMaskType *_arg) |
|
| virtual const FixedImageMaskType * | GetFixedImageMask () |
| virtual void | SetFixedImageMask (FixedImageMaskType *_arg) |
|
| virtual const FixedImagePixelType & | GetFixedImageSamplesIntensityThreshold () |
| virtual const bool & | GetUseFixedImageSamplesIntensityThreshold () |
| void | SetFixedImageSamplesIntensityThreshold (const FixedImagePixelType &thresh) |
| virtual void | SetUseFixedImageSamplesIntensityThreshold (bool _arg) |
|
| virtual bool | GetMeasureMatches () |
| virtual void | MeasureMatchesOff () |
| virtual void | MeasureMatchesOn () |
| virtual void | SetMeasureMatches (bool _arg) |
|
| virtual bool | GetMeasureMatches () |
| virtual void | MeasureMatchesOff () |
| virtual void | MeasureMatchesOn () |
| virtual void | SetMeasureMatches (bool _arg) |
|
| virtual const MovingImageMaskType * | GetMovingImageMask () |
| virtual void | SetMovingImageMask (MovingImageMaskType *_arg) |
|
| virtual const MovingImageMaskType * | GetMovingImageMask () |
| virtual void | SetMovingImageMask (MovingImageMaskType *_arg) |
|
| virtual const unsigned long & | GetNumberOfMovingImageSamples () |
| unsigned long | GetNumberOfPixelsCounter (void) |
|
| virtual const int & | GetNumberOfThreads () |
| virtual void | SetNumberOfThreads (int _arg) |
|
| virtual const bool & | GetUseAllPixels () |
| virtual void | SetUseAllPixels (bool _arg) |
| virtual void | UseAllPixelsOff () |
| virtual void | UseAllPixelsOn () |
|
| virtual const bool & | GetUseCachingOfBSplineWeights () |
| virtual void | SetUseCachingOfBSplineWeights (bool _arg) |
| virtual void | UseCachingOfBSplineWeightsOff () |
| virtual void | UseCachingOfBSplineWeightsOn () |
|
| virtual void | GetValueAndDerivative (const ParametersType ¶meters, MeasureType &value, DerivativeType &derivative) const |
|
| | itkStaticConstMacro (FixedImageDimension, unsigned int, TFixedImage::ImageDimension) |
| | itkStaticConstMacro (MovingImageDimension, unsigned int, TMovingImage::ImageDimension) |
|
| | itkStaticConstMacro (FixedImageDimension, unsigned int, TFixedImage::ImageDimension) |
| | itkStaticConstMacro (MovingImageDimension, unsigned int, TMovingImage::ImageDimension) |
|
| void | ReinitializeSeed (int seed) |
| void | ReinitializeSeed () |
|
| virtual void | SetNumberOfFixedImageSamples (unsigned long numSamples) |
|
| virtual void | SetNumberOfThreads (unsigned int _arg) |
Static Public Member Functions |
| static void | BreakOnError () |
| static Pointer | New () |
| static Pointer | New () |
|
| static bool | GetGlobalWarningDisplay () |
| static void | GlobalWarningDisplayOff () |
| static void | GlobalWarningDisplayOn () |
| static void | SetGlobalWarningDisplay (bool flag) |
Protected Types |
| typedef std::vector< bool > | BooleanArrayType |
typedef BSplineInterpolateImageFunction<
MovingImageType, CoordinateRepresentationType > | BSplineInterpolatorType |
typedef FixedArray< unsigned
long,::itk::GetImageDimension<
FixedImageType >::ImageDimension > | BSplineParametersOffsetType |
| typedef BSplineTransformType::ParameterIndexArrayType | BSplineTransformIndexArrayType |
| typedef Array2D< IndexValueType > | BSplineTransformIndicesArrayType |
typedef BSplineDeformableTransform<
CoordinateRepresentationType,
::itk::GetImageDimension<
FixedImageType >::ImageDimension,
itkGetStaticConstMacro(DeformationSplineOrder) > | BSplineTransformType |
| typedef Array2D< WeightsValueType > | BSplineTransformWeightsArrayType |
| typedef BSplineTransformType::WeightsType | BSplineTransformWeightsType |
typedef CentralDifferenceImageFunction<
MovingImageType, CoordinateRepresentationType > | DerivativeFunctionType |
| typedef std::vector< FixedImageSamplePoint > | FixedImageSampleContainer |
typedef CovariantVector< double,
itkGetStaticConstMacro(MovingImageDimension) > | ImageDerivativesType |
| typedef BSplineTransformIndexArrayType::ValueType | IndexValueType |
| typedef std::vector< MovingImagePointType > | MovingImagePointArrayType |
| typedef MultiThreader | MultiThreaderType |
| typedef BSplineTransformWeightsType::ValueType | WeightsValueType |
Protected Member Functions |
| virtual void | ComputeImageDerivatives (const MovingImagePointType &mappedPoint, ImageDerivativesType &gradient, unsigned int threadID) const |
| MeasureType | GetNonconstValue (const TransformParametersType ¶meters) |
| MeasureType | GetNonconstValue (const TransformParametersType ¶meters) |
| void | GetValueAndDerivativeMultiThreadedInitiate (void) const |
| void | GetValueAndDerivativeMultiThreadedPostProcessInitiate (void) const |
| void | GetValueAndDerivativeMultiThreadedPreProcessInitiate (void) const |
| void | GetValueAndDerivativeThread (unsigned int threadID) const |
| virtual void | GetValueAndDerivativeThreadPostProcess (unsigned int, bool) const |
| virtual void | GetValueAndDerivativeThreadPreProcess (unsigned int, bool) const |
| virtual bool | GetValueAndDerivativeThreadProcessSample (unsigned int, unsigned long, const MovingImagePointType &, double, const ImageDerivativesType &) const |
| void | GetValueMultiThreadedInitiate (void) const |
| void | GetValueMultiThreadedPostProcessInitiate (void) const |
| void | GetValueMultiThreadedPreProcessInitiate (void) const |
| void | GetValueThread (unsigned int threadID) const |
| virtual void | GetValueThreadPostProcess (unsigned int, bool) const |
| virtual void | GetValueThreadPreProcess (unsigned int threadID, bool withinSampleThread) const |
| virtual bool | GetValueThreadProcessSample (unsigned int, unsigned long, const MovingImagePointType &, double) const |
| | itkStaticConstMacro (DeformationSplineOrder, unsigned int, 3) |
| | MatchCardinalityImageToImageMetric () |
| | MatchCardinalityImageToImageMetric () |
| void | NumberOfFixedImageSamplesUpdated () |
| virtual void | PreComputeTransformValues (void) |
| bool | PrintObservers (std::ostream &os, Indent indent) const |
| void | PrintSelf (std::ostream &os, Indent indent) const |
| void | PrintSelf (std::ostream &os, Indent indent) const |
| virtual void | SampleFixedImageDomain (FixedImageSampleContainer &samples) const |
| virtual void | SampleFixedImageIndexes (FixedImageSampleContainer &samples) |
| virtual void | SampleFullFixedImageDomain (FixedImageSampleContainer &samples) |
| virtual int | SplitFixedRegion (int i, int num, FixedImageRegionType &splitRegion) |
| virtual int | SplitFixedRegion (int i, int num, FixedImageRegionType &splitRegion) |
| void | SynchronizeTransforms () const |
| virtual void | ThreadedGetValue (const FixedImageRegionType &outputRegionForThread, int threadId) |
| virtual void | ThreadedGetValue (const FixedImageRegionType &outputRegionForThread, int threadId) |
| virtual void | TransformPoint (unsigned int sampleNumber, MovingImagePointType &mappedPoint, bool &sampleWithinSupportRegion, double &movingImageValue, unsigned int threadID) const |
| virtual void | TransformPointWithDerivatives (unsigned int sampleNumber, MovingImagePointType &mappedPoint, bool &sampleWithinSupportRegion, double &movingImageValue, ImageDerivativesType &gradient, unsigned int threadID) const |
| virtual | ~MatchCardinalityImageToImageMetric () |
| virtual | ~MatchCardinalityImageToImageMetric () |
|
| virtual void | PrintHeader (std::ostream &os, Indent indent) const |
| virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
Static Protected Member Functions |
| static ITK_THREAD_RETURN_TYPE | GetValueAndDerivativeMultiThreaded (void *arg) |
| static ITK_THREAD_RETURN_TYPE | GetValueAndDerivativeMultiThreadedPostProcess (void *arg) |
| static ITK_THREAD_RETURN_TYPE | GetValueAndDerivativeMultiThreadedPreProcess (void *arg) |
| static ITK_THREAD_RETURN_TYPE | GetValueMultiThreaded (void *arg) |
| static ITK_THREAD_RETURN_TYPE | GetValueMultiThreadedPostProcess (void *arg) |
| static ITK_THREAD_RETURN_TYPE | GetValueMultiThreadedPreProcess (void *arg) |
| static ITK_THREAD_RETURN_TYPE | ThreaderCallback (void *arg) |
| static ITK_THREAD_RETURN_TYPE | ThreaderCallback (void *arg) |
Protected Attributes |
| BSplineInterpolatorType::Pointer | m_BSplineInterpolator |
| BSplineParametersOffsetType | m_BSplineParametersOffset |
| MovingImagePointArrayType | m_BSplinePreTransformPointsArray |
| BSplineTransformType::Pointer | m_BSplineTransform |
| BSplineTransformIndexArrayType | m_BSplineTransformIndices |
| BSplineTransformIndicesArrayType | m_BSplineTransformIndicesArray |
| BSplineTransformWeightsType | m_BSplineTransformWeights |
| BSplineTransformWeightsArrayType | m_BSplineTransformWeightsArray |
| bool | m_ComputeGradient |
| DerivativeFunctionType::Pointer | m_DerivativeCalculator |
| FixedImageConstPointer | m_FixedImage |
| FixedImageIndexContainer | m_FixedImageIndexes |
| FixedImageMaskPointer | m_FixedImageMask |
| FixedImageSampleContainer | m_FixedImageSamples |
| FixedImagePixelType | m_FixedImageSamplesIntensityThreshold |
| GradientImagePointer | m_GradientImage |
| InterpolatorPointer | m_Interpolator |
| bool | m_InterpolatorIsBSpline |
| MovingImageConstPointer | m_MovingImage |
| MovingImageMaskPointer | m_MovingImageMask |
| unsigned long | m_NumberOfFixedImageSamples |
| unsigned long | m_NumberOfMovingImageSamples |
| unsigned long | m_NumberOfParameters |
| unsigned long | m_NumberOfPixelsCounted |
| unsigned long | m_NumBSplineWeights |
| ParametersType | m_Parameters |
| int | m_RandomSeed |
| volatile int | m_ReferenceCount |
| SimpleFastMutexLock | m_ReferenceCountLock |
| bool | m_ReseedIterator |
| BSplineTransformIndexArrayType * | m_ThreaderBSplineTransformIndices |
| BSplineTransformWeightsType * | m_ThreaderBSplineTransformWeights |
| unsigned int | m_ThreaderChunkSize |
| unsigned int * | m_ThreaderNumberOfMovingImageSamples |
| MultiThreaderParameterType | m_ThreaderParameter |
| unsigned int | m_ThreaderSizeOfLastChunk |
| TransformPointer * | m_ThreaderTransform |
| TransformPointer | m_Transform |
| bool | m_TransformIsBSpline |
| bool | m_UseAllPixels |
| bool | m_UseCachingOfBSplineWeights |
| bool | m_UseFixedImageIndexes |
| bool | m_UseFixedImageSamplesIntensityThreshold |
| BooleanArrayType | m_WithinBSplineSupportRegionArray |
| bool | m_WithinThreadPostProcess |
| bool | m_WithinThreadPreProcess |
Classes |
| struct | ThreadStruct |