skimage2.util#

Warning

This module is part of the experimental skimage2 namespace and is subject to change without notice. Do not use it in production code. See the migration guide for more details.

Utility functions to work with images in general.

_prescale_value_range

Rescale the value range of image according to the selected mode.

compare_images

Return an image showing the differences between two images.

crop

Crop array ar by crop_width along each dimension.

dtype_limits

Return intensity limits, i.e. (min, max) tuple, of the image's dtype.

img_as_bool

Convert an image to boolean format.

img_as_float

Convert an image to floating point format.

img_as_float32

Convert an image to single-precision (32-bit) floating point format.

img_as_float64

Convert an image to double-precision (64-bit) floating point format.

img_as_int

Convert an image to 16-bit signed integer format.

img_as_ubyte

Convert an image to 8-bit unsigned integer format.

img_as_uint

Convert an image to 16-bit unsigned integer format.

invert

Invert an image.

label_points

Assign unique integer labels to coordinates on an image mask

lookfor

Do a keyword search on scikit-image docstrings and print results.

map_array

Map values from input array from input_vals to output_vals.

montage

Create a montage of several single- or multichannel images.

random_noise

Function to add random noise of various types to a floating-point image.

regular_grid

Find n_points regularly spaced along ar_shape.

regular_seeds

Return an image with ~`n_points` regularly-spaced nonzero pixels.

rescale_legacy

Rescale value range based on dtype (legacy skimage behavior).

rescale_minmax

Min-max normalize image values to the range [0., 1.].

slice_along_axes

Slice an image along given axes.

unique_rows

Remove repeated rows from a 2D array.

view_as_blocks

Block view of the input n-dimensional array (using re-striding).

view_as_windows

Rolling window view of the input n-dimensional array.

apply_parallel