bundles / skimage 0.26.1rc0.dev0+git20260530.b607368ff / skimage / util / dtype / img_as_int
function
skimage.util.dtype:img_as_int
source: /dev/scikit-image/src/skimage/util/dtype.py :532
Signature
def img_as_int ( image , force_copy = False ) Summary
Convert an image to 16-bit signed integer format.
Parameters
image: ndarrayInput image.
force_copy: bool, optionalForce a copy of the data, irrespective of its current dtype.
Returns
out: ndarray of int16Output image.
Notes
The values are scaled between -32768 and 32767. If the input data-type is positive-only (e.g., uint8), then the output image will still only have positive values.
Aliases
-
skimage.util.img_as_int