0
Could you please answer which angle you mean in the code below? 
; matrix_coocurrence = greycomatrix(inds, [1], [0, np.pi/4, np.pi/2, 3*np.pi/4], levels=max_value, normed=False, symmetric=False)

Should I interpret it as below?
; [0, np.pi/4, np.pi/2, 3*np.pi/4]
   0 = vertical (0 degree) 
   np.pi/4 = 45 degree
   np.pi/2 = horizontal (90 degree)
   3*np.pi/4 = 135 degree

Should I select horizontal (90 degree = np.pi/2) when calculating GLCM by tying two pixels on the left and right sides as shown in the attached image?

[enter image description here](https://i.stack.imgur.com/wEWgp.png)

Finally, is it correct that the code in the link below calculated as horizontal (90 degree)?
https://scikit-image.org/docs/dev/auto_examples/features_detection/plot_glcm.html

I'm in desperate need of help. Please answer the questions of the experts who know well

I analyzed the image using the code of the link below Gray Level Co occurrence Matrix of image in Python

I was able to get 4 result values for each analysis item as below Example of a result value : [0.35775984 0.74413858 0.59561331 0.77124789]

The formula for calculating the result is as follows: : [0, np.pi/4, np.pi/2, 3*np.pi/4]

I want to know the angle that each value means through the image matrix

0 Answers0