MIR.image_similarity.SSIMΒΆ
Structural Similarity Index (SSIM) utilities.
All SSIM functions use a Gaussian window with sigma = 1.5 and the constants C1 = 0.01^2 and C2 = 0.03^2,
which assume intensities in [0, 1].
Functions
|
Create a 2D SSIM window tensor. |
|
Create a 3D SSIM window tensor. |
|
Create a 1D Gaussian kernel for SSIM windows. |
|
Compute 2D SSIM between two images (functional form of |
|
Compute 3D SSIM between two volumes. |
Classes
|
2D structural similarity (SSIM) between two images. |
|
3D SSIM loss between two volumes. |