mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-13 17:45:20 +08:00
Merge pull request #96 from emmanuelle/glcm
BUG: greycomatrix, one of the tests was failing for symmetric case.
This commit is contained in:
@@ -101,7 +101,9 @@ def greycomatrix(image, distances, angles, levels=256, symmetric=False,
|
||||
|
||||
# make each GLMC symmetric
|
||||
if symmetric:
|
||||
P += np.transpose(P, (1, 0, 2, 3))
|
||||
Pt = np.transpose(P, (1, 0, 2, 3))
|
||||
P = P + Pt
|
||||
|
||||
|
||||
# normalize each GLMC
|
||||
if normed:
|
||||
|
||||
Reference in New Issue
Block a user