mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-29 11:26:57 +08:00
Add tests for nonstandard images
This commit is contained in:
@@ -40,6 +40,7 @@ def imshow(im, *args, **kwargs):
|
||||
# display range starts at 0 for nonnegative images
|
||||
lo = 0
|
||||
else:
|
||||
lo, hi = immin, immax
|
||||
warnings.warn("Non-standard image type; displaying image with "
|
||||
"stretched contrast.")
|
||||
out_of_range_float = (np.issubdtype(im.dtype, np.float) and
|
||||
|
||||
Reference in New Issue
Block a user