CQ | R Documentation |
This function computes a similarity index (CQ) based on the codispersion coefficient.
CQ(x, y, h = c(0,1), eps = c(0.01, 0.03), L = 255)
x |
reference image matrix (grayscale) |
y |
distorted image matrix (grayscale) |
h |
2-dimensional vector of the spatial lag. Default value is |
eps |
rescaling constants, by default |
L |
dynamic range of the images, by default |
A list containing the following components:
CQ |
codispersion based similarity index between images |
direction |
vector of spatial lag. |
comps |
components of |
stats |
sample statistics (means, variances and covariance) for each image. |
speed |
Running time taken by the procedure. |
Ojeda, S.M., Lamberti, P.W., Vallejos, R. (2012). Measure of similarity between images based on the codispersion coefficient. Journal of Electronic Imaging 21, 023019.
Vallejos, R., Mancilla, D., Acosta, J. (2016). Image similarity assessment based on coefficients of spatial association. Journal of Mathematical Imaging and Vision 56, 77-98.
data(texmos2)
y <- imnoise(texmos2, type = "gaussian")
plot(as.raster(y))
o <- CQ(texmos2, y, h = c(0,1))
o
y <- imnoise(texmos2, type = "speckle")
plot(as.raster(y))
o <- CQ(texmos2, y, h = c(0,1))
o
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.