mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-04 13:00:57 +08:00
Add tests for nonstandard images
This commit is contained in:
1 parent
176889933f
commit
9fe4f33793
2 files changed
+27
No files matched your search
@@ -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