Implementation of the SSI quantity for two images proposed in

SSIM(x, y, K = c(0.01, 0.03))

Arguments

x

input image.

y

input image.

K

vector of length 2 which contain SSI parameters meant to stabilize the formula in case of weak denominators.

Value

the structural similarity index

Details

Z. Wang, A.C. Bovik, H.R. Sheikh, E.P. Simoncelli. "Image quality assessment: from error visibility to structural similarity". IEEE TIP. 13 (4): 600–612.

Author

Avants BB

Examples

library( ANTsR ) r16 <- antsImageRead( getANTsRData( 'r16' ) ) r85 <- antsImageRead( getANTsRData( 'r85' ) ) ssimValue <- SSIM( r16, r85 )