mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-28 13:02:29 +08:00
Corrected testing code
This commit is contained in:
@@ -5,7 +5,7 @@ from numpy import testing
|
||||
|
||||
def energy(img):
|
||||
if(img.ndim == 3):
|
||||
return np.ascontiguousarray(img[:, :, 0])
|
||||
img = np.ascontiguousarray(img[:, :, 0])
|
||||
return (1 - img)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user