mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-03 18:57:58 +08:00
Merge pull request #1542 from michaelaye/patch-2
Remove unnecessary loop counter
This commit is contained in:
@@ -47,7 +47,7 @@ for loc in sky_locations:
|
||||
# compute some GLCM properties each patch
|
||||
xs = []
|
||||
ys = []
|
||||
for i, patch in enumerate(grass_patches + sky_patches):
|
||||
for patch in (grass_patches + sky_patches):
|
||||
glcm = greycomatrix(patch, [5], [0], 256, symmetric=True, normed=True)
|
||||
xs.append(greycoprops(glcm, 'dissimilarity')[0, 0])
|
||||
ys.append(greycoprops(glcm, 'correlation')[0, 0])
|
||||
|
||||
Reference in New Issue
Block a user