Image Processing SciKit (Toolbox for SciPy)
scikit-image (a.k.a. skimage) is a collection of algorithms for image processing and computer vision.
The main package of skimage only provides a few utilities for converting between image data types; for most features, you need to import one of the following subpackages:
skimage.dtype_limits(image[, clip_negative]) | Return intensity limits, i.e. |
skimage.img_as_bool(image[, force_copy]) | Convert an image to boolean format. |
skimage.img_as_float(image[, force_copy]) | Convert an image to double-precision floating point format. |
skimage.img_as_int(image[, force_copy]) | Convert an image to 16-bit signed integer format. |
skimage.img_as_ubyte(image[, force_copy]) | Convert an image to 8-bit unsigned integer format. |
skimage.img_as_uint(image[, force_copy]) | Convert an image to 16-bit unsigned integer format. |
skimage.test([doctest, verbose]) | Run all unit tests. |
Return intensity limits, i.e. (min, max) tuple, of the image’s dtype.
Parameters: | image : ndarray
clip_negative : bool
|
---|
Convert an image to boolean format.
Parameters: | image : ndarray
force_copy : bool
|
---|---|
Returns: | out : ndarray of bool (bool_)
|
Notes
The upper half of the input dtype’s positive range is True, and the lower half is False. All negative values (if present) are False.
Convert an image to double-precision floating point format.
Parameters: | image : ndarray
force_copy : bool
|
---|---|
Returns: | out : ndarray of float64
|
Notes
The range of a floating point image is [0.0, 1.0] or [-1.0, 1.0] when converting from unsigned or signed datatypes, respectively.
Convert an image to 16-bit signed integer format.
Parameters: | image : ndarray
force_copy : bool
|
---|---|
Returns: | out : ndarray of uint16
|
Notes
If the input data-type is positive-only (e.g., uint8), then the output image will still only have positive values.
Convert an image to 8-bit unsigned integer format.
Parameters: | image : ndarray
force_copy : bool
|
---|---|
Returns: | out : ndarray of ubyte (uint8)
|
Notes
If the input data-type is positive-only (e.g., uint16), then the output image will still only have positive values.
Convert an image to 16-bit unsigned integer format.
Parameters: | image : ndarray
force_copy : bool
|
---|---|
Returns: | out : ndarray of uint16
|
Notes
Negative input values will be shifted to the positive domain.