Files
scikit-image/skimage
Juan Nunez-Iglesias ea1566fffb Fix image dimension sanitizing at function start
`np.atleast_3d` will add a singleton dimension at the end of an array
if needed. This is not the correct thing to do if `multichannel=False`
based on the subsequent lines. If the input image was 2D with shape
`(40, 50)` and `multichannel=False`, then `np.atleast_3d` gives it
shape `(40, 50, 1)`, and then, because `multichannel=False`, the rest
of the code gives it shape `(40, 50, 1, 1)`. This results in the final
returned array having shape `(40, 50, 1)` instead of the desired
`(40, 50)`.

This commit fixes that and updates the test to detect this failure.
2013-09-16 16:02:24 +10:00
..
2013-08-21 11:09:02 +02:00
2013-08-19 11:26:07 -07:00
2013-08-19 18:37:30 +02:00
2013-08-21 17:50:21 +02:00
2013-06-12 21:16:23 +02:00
2012-10-29 18:10:39 +01:00