mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-29 17:53:25 +08:00
ea1566fffb2cd08e7632be8032fd60977f30a1e2
`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.
Image Processing SciKit
Source
https://github.com/scikit-image/scikit-image
Mailing List
http://groups.google.com/group/scikit-image
Installation from source
Refer to DEPENDS.txt for a list of dependencies.
The SciKit may be installed globally using
$ python setup.py install
or locally using
$ python setup.py install --prefix=${HOME}
If you prefer, you can use it without installing, by simply adding this path to your PYTHONPATH variable and compiling the extensions:
$ python setup.py build_ext -i
License
Please read LICENSE.txt in this directory.
Description
Languages
Python
71.7%
Cython
17.9%
C
8.3%
C++
1.6%
PowerShell
0.2%
Other
0.2%