mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-29 13:30:24 +08:00
Make sure 1x1 images are 2-D
This commit is contained in:
1 parent
3e881fe35c
commit
313032d487
1 file changed
+1
@@ -1002,6 +1002,7 @@ def _convert_warp_input(image, keep_range):
|
||||
else:
|
||||
if image.dtype == np.double:
|
||||
image = rescale_intensity(image)
|
||||
image = np.atleast_2d(image)
|
||||
else:
|
||||
image = img_as_float(image)
|
||||
return image
|
||||
|
||||
Reference in new issue
Block a user