I have to find texture based features of an image like correlation, energy, homogeneity, and contrast in Python. I am using python-opencv to do other operations, since python-opencv returns image as an numpy array. But I didn't find any good resource to compute GLCM using either opencv or numpy. Also I have to extract feature for d=1 and angle=[0,45,135,90] and then use this feature in svm.
Asked
Active
Viewed 9,809 times
4
Tonechas
- 13,398
- 16
- 46
- 80
user1234567
- 198
- 4
- 11
1 Answers
5
You have to install the following libraries scipy, numpy and skimage.
skimage has a module called skimage.feature which includes
skimage.feature.greycomatrix and skimage.feature.greycoprops. Using these we can calculate the greycoimage for ndarray uint8 and also the greco proporties instructions
Jeru Luke
- 20,118
- 13
- 80
- 87
RAUSHAN RAJ
- 120
- 2
- 7