mirror of
https://github.com/wassname/scikit-image.git
synced 2026-09-12 12:50:49 +08:00
Revert change to is_rgb
This commit is contained in:
@@ -90,7 +90,7 @@ def is_rgb(image):
|
||||
Input image.
|
||||
|
||||
"""
|
||||
return (image.ndim in (3, 4) and image.shape[-1] in (3, 4))
|
||||
return (image.ndim == 3 and image.shape[2] in (3, 4))
|
||||
|
||||
|
||||
@deprecated()
|
||||
|
||||
Reference in New Issue
Block a user