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