mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-07 06:56:04 +08:00
Make sure 1x1 images are 2-D
This commit is contained in:
@@ -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