Description Usage Arguments Details Value See Also
This function implements the structural similarity index of Wang et al. (2003) formulated
for comparison of raster
spatial objects.
1 |
img1 |
is a |
img2 |
is a |
w |
is the width of the neighbourhood in number of pixels out from centre cell |
edge |
is a binary flag for whether a torroidal edge correction should be applied |
ks |
is a vector of length 2 which contains values for constants in the SSIM formula. If ignored default values will be used. |
GFil |
is a binary flag for whether a Gaussian filter should be applied as a smoothing function |
The ssim
function can be used to generate the three component indices of the SSIM index
as well as the composite index. Two raster objects are the key arguments which will be used to compare.
These two raster objects must have the same CRS
, extent, and cell size.
ssim
returns a list with 5 objects. The first is the value of the global ssim statistic. Objects 2-5 are all raster
objects
that contain the composite index, luminance, contrast, and structure components respectively.
spatialcompare
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.