The Wayback Machine - https://web.archive.org/web/20210811235055/https://github.com/scikit-image/scikit-image
Skip to content
main
Switch branches/tags
Code

Latest commit

…5462)

* TST: channel_axis tests for rgba2rgb

* Add channel_axis kwarg to rgb2hsv and hsv2rgb

TST: test rgb2hsv and hsv2rgb with variable channel_axis

* use existing channel_as_last_axis decorator for hsv2rgb and rgb2hsv

* add channel_axis to rgb2xyz, xyz2rgb

add channel_axis to rgb2rgbcie, rgbcie2rgb
add channel_axis to gray2rgb, gray2rgba, rgb2gray, rgba2gray

* add channel_axis to rgb2luv, luv2rgb, xyz2luv, luv2xyz

add channel_axis to rgb2lab, lab2rgb, xyz2lab, lab2xyz

* add channel_axis to combine_stains, separate_stains, rgb2hed, hed2rgb

* add channel_axis support to remaining functions in colorconv.py

* support user-specified channel_axis for label2rgb

* support channel_axis for deltaE_*

* add channel_axis option to adapt_rgb decorator, each_channel and hsv_value

* support use of channel_axis in functions wrapped by adapt_rgb

support channel_axis for hsv_value and each_channel decorators

* DOC: update docstrings to describe channel_axis

add channel_axis support to convert_colorspace

* BUG: fix label2rgb when an RGB image is provided and channel_axis != -1

* Revert "support use of channel_axis in functions wrapped by adapt_rgb"

This reverts commit 8063049.

* Revert "add channel_axis option to adapt_rgb decorator, each_channel and hsv_value"

This reverts commit 3d82e2c.

* update shape description in labl2rgb docstring

* Apply suggestions from code review

Co-authored-by: Marianne Corvellec <[email protected]>

* switch from ValueError to np.AxisError for invalid axis in rgba2rgb

* raise TypeError on non-integer axis

* TST: test additional negative channel_axis values

Co-authored-by: Riadh Fezzani <[email protected]>

* STYLE: rename _reshape_nd to reshape_nd

* move identity helper to skimage._shared.utils

Co-authored-by: Marianne Corvellec <[email protected]>
Co-authored-by: Riadh Fezzani <[email protected]>
293fb93

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time

scikit-image: Image processing in Python

Image.sc forum Stackoverflow project chat codecov.io

Installation from binaries

  • Debian/Ubuntu: sudo apt-get install python-skimage
  • OSX: pip install scikit-image
  • Anaconda: conda install -c conda-forge scikit-image
  • Windows: Download Windows binaries

Also see installing scikit-image.

Installation from source

Install dependencies using:

pip install -r requirements.txt

Then, install scikit-image using:

$ pip install .

If you plan to develop the package, you may run it directly from source:

$ pip install -e .  # Do this once to add package to Python path

Every time you modify Cython files, also run:

$ python setup.py build_ext -i  # Build binary extensions

License (Modified BSD)

Copyright (C) 2011, the scikit-image team All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of skimage nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Citation

If you find this project useful, please cite:

Stéfan van der Walt, Johannes L. Schönberger, Juan Nunez-Iglesias, François Boulogne, Joshua D. Warner, Neil Yager, Emmanuelle Gouillart, Tony Yu, and the scikit-image contributors. scikit-image: Image processing in Python. PeerJ 2:e453 (2014) https://doi.org/10.7717/peerj.453