I want to do comparison between two textures to identify the similarity. I obtained the features of GLCM using the following code:
import cv2
import numpy as np
from skimage.feature import greycomatrix, greycoprops
img = cv2.imread('images/test1_texture_blur.png', 0)
image_array = np.array(img, dtype=np.uint8)
g = greycomatrix(image_array, [1, 2], [0, np.pi/2], levels=256, normed=True, symmetric=True)
contrast = greycoprops(g, 'contrast')
dissimilarity = greycoprops(g, 'dissimilarity')
homogeneity = greycoprops(g, 'homogeneity')
energy = greycoprops(g, 'energy')
correlation = greycoprops(g, 'correlation')
ASM = greycoprops(g, 'ASM')
Now I have two images and their GLCM. How to compare it? My aim is actually to identify the Print and Scan effect.