You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the scikit image documentation on the gray-level co-occurrence matrix, the Example states: "Compute 2 GLCMs: One for a 1-pixel offset to the right, and one for a 1-pixel offset upwards."
The code below however computes 4 GLCMs result = graycomatrix(image, [1], [0, np.pi/4, np.pi/2, 3*np.pi/4], levels=4).
Should it not just be result = graycomatrix(image, [1], [0, np.pi/2], levels=4)?
The text was updated successfully, but these errors were encountered:
Thanks for the hint @FedericoWZhaw! #955 makes me think that that when the other angles were added the comment was just forgotten. Would you like to make a PR that fixes the comment? 😊 🙏
Description:
In the scikit image documentation on the gray-level co-occurrence matrix, the Example states: "Compute 2 GLCMs: One for a 1-pixel offset to the right, and one for a 1-pixel offset upwards."
The code below however computes 4 GLCMs
result = graycomatrix(image, [1], [0, np.pi/4, np.pi/2, 3*np.pi/4], levels=4)
.Should it not just be
result = graycomatrix(image, [1], [0, np.pi/2], levels=4)
?The text was updated successfully, but these errors were encountered: