Public Types | Static Public Member Functions

cmtk::ScalarImageSimilarity Class Reference
[cmtkRegistration Library]

Class with operators to compute various 2-D image similarity measures. More...

#include <cmtkScalarImageSimilarity.h>

Inheritance diagram for cmtk::ScalarImageSimilarity:
Inheritance graph
[legend]
Collaboration diagram for cmtk::ScalarImageSimilarity:
Collaboration graph
[legend]

List of all members.

Public Types

enum  ID {
  MI = 0, NMI = 1, RMI = 2, RNMI = 3,
  CR = 4, CC = 5, MSD = 6, PSNR = 7,
  DAE = 8, GradientCorrelation = 9, PatternIntensity = 10
}
 

Identifiers for all available metrics.

More...

Static Public Member Functions

static ReturnType GetMutualInformation (const ScalarImage *image0, const ScalarImage *image1, ScalarImageSimilarityMemory *const memory=NULL)
 Compute mutual information between two images.
static ReturnType GetNormalizedMutualInformation (const ScalarImage *image0, const ScalarImage *image1, ScalarImageSimilarityMemory *const memory=NULL)
 Compute normalized mutual information between two images.
static ReturnType GetMutualInformation (std::vector< const ScalarImage * > &array0, std::vector< const ScalarImage * > &array1, const bool normalized=false)
 Compute mutual information between two sets of pixel arrays.
static ReturnType GetNormalizedMutualInformation (std::vector< const ScalarImage * > &array0, std::vector< const ScalarImage * > &array1)
 Compute norrmalized mutual information between two sets of pixel arrays.
static ReturnType GetRegionalMutualInformation (const ScalarImage *image0, const ScalarImage *image1, const int radius=2)
 Compute regional mutual information between two images.
static ReturnType GetMinusMeanSquaredDifference (const ScalarImage *image0, const ScalarImage *image1)
 Compute negated (i.e., sign-switched) mean squared pixel difference between two images.
static ReturnType GetCrossCorrelation (const ScalarImage *image0, const ScalarImage *image1)
 Compute normalized cross correlation between two images.
static ReturnType GetGradientCorrelation (const ScalarImage *image0, const ScalarImage *image1)
 Compute gradient correlation between two images.
static ReturnType GetGradientDifference (const ScalarImage *image0, const ScalarImage *image1, const ReturnType Ax=1, const ReturnType Ay=1)
 Compute gradient difference between two images.
static ReturnType GetPatternIntensity (const ScalarImage *image0, const ScalarImage *image1, const ReturnType sigma=10, const int radius=3)
 Compute pattern intensity between two images.
static ReturnType GetDifferenceImageEntropy (const ScalarImage *image0, const ScalarImage *image1)
 Compute entropy of difference of two images.
static ReturnType GetDifferenceImageEntropy (const ScalarImage *image0, const ScalarImage *image1, Types::DataItem &scaleFactor)
 Compute entropy of difference of two images.
static ReturnType GetCorrelationRatio (const ScalarImage *image0, const ScalarImage *image1)
 Compute correlation ratio between two pixel arrays.
static bool CheckImageDimensions (const ScalarImage *image0, const ScalarImage *image1)
 Check whether two images are valid and have matching pixel dimensions.

Detailed Description

Class with operators to compute various 2-D image similarity measures.

Most functions in this class implement operators investigated by Penney et al. [Penney G, et al., Similarity Measures for Use in 2D-3D Medical Image Registration, IEEE Trans Med Imaging 17(4):586-595, 1998 (August)] for use in registration of 2-D fluoroscopic images to 3-D CT volumes.

See also:
TypedArraySimilarity for implementation of all operators that do not require 2-D arrangement of pixels but work on the sequential pixel arrays.

Definition at line 65 of file cmtkScalarImageSimilarity.h.


Member Enumeration Documentation

Identifiers for all available metrics.

Enumerator:
MI 

Mutual information.

NMI 

Normalized mutual information.

RMI 

Regional mutual information.

RNMI 

Regional normalized mutual information.

CR 

Correlation ratio.

CC 

Cross correlation.

MSD 

Mean squared difference.

PSNR 

Peak signal-to-noise ratio.

DAE 

Difference array entropy.

GradientCorrelation 

Gradient correlation.

PatternIntensity 

Pattern intensity.

Reimplemented from cmtk::TypedArraySimilarity.

Definition at line 71 of file cmtkScalarImageSimilarity.h.


Member Function Documentation

static ReturnType cmtk::ScalarImageSimilarity::GetMutualInformation ( std::vector< const ScalarImage * > &  array0,
std::vector< const ScalarImage * > &  array1,
const bool  normalized = false 
) [inline, static]

Compute mutual information between two sets of pixel arrays.

Definition at line 109 of file cmtkScalarImageSimilarity.h.

static ReturnType cmtk::ScalarImageSimilarity::GetNormalizedMutualInformation ( std::vector< const ScalarImage * > &  array0,
std::vector< const ScalarImage * > &  array1 
) [inline, static]

Compute norrmalized mutual information between two sets of pixel arrays.

Definition at line 125 of file cmtkScalarImageSimilarity.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines