Calculating entropy from GLCM of an image

后端 未结 2 1298
醉话见心
醉话见心 2021-02-02 00:48

I am using skimage library for most of image analysis work.

I have an RGB image and I intend to extract texture features like entropy

2条回答
  •  萌比男神i
    2021-02-02 01:50

    from skimage.feature import greycomatrix, greycoprops
    
        dis = (greycoprops(glcm, 'dissimilarity'))
        plt.hist(dis.ravel(), normed=True, bins=256, range=(0, 30),facecolor='0.5');plt.show()
    

提交回复
热议问题