{ } Raw JSON

bundles / skimage 0.26.1rc0.dev0+git20260530.b607368ff / skimage / util / dtype / img_as_uint

function

skimage.util.dtype:img_as_uint

source: /dev/scikit-image/src/skimage/util/dtype.py :508

Signature

def   img_as_uint ( image force_copy = False )

Summary

Convert an image to 16-bit unsigned integer format.

Parameters

image : ndarray

Input image.

force_copy : bool, optional

Force a copy of the data, irrespective of its current dtype.

Returns

out : ndarray of uint16

Output image.

Notes

Negative input values will be clipped. Positive values are scaled between 0 and 65535.

Aliases

  • skimage.util.img_as_uint