enstools.scores.structural_similarity_index

enstools.scores.structural_similarity_index(reference: DataArray, target: DataArray) DataArray

Compute the Structural Similarity Index Metric of the full DataArray. For more than two spatial dimensions the computation its done slice by slice.

Relies on skimage to compute the SSIM of each slice.

Parameters:
referencexarray.DataArray
targetxarray.DataArray
Returns:
SSIM: xarray.DataArray

A data array with the time-series of the SSIM