Class with operators to compute various 2-D image similarity measures. More...
#include <cmtkScalarImageSimilarity.h>
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. |
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.
Definition at line 65 of file cmtkScalarImageSimilarity.h.
Identifiers for all available metrics.
Reimplemented from cmtk::TypedArraySimilarity.
Definition at line 71 of file cmtkScalarImageSimilarity.h.
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.