FUNCTION REFERENCE
im2single
Convert an image to single precision.
Convert an image to single precision.
Syntax
I2 = im2single(I)Syntax
I2 = im2single(X, 'indexed')The im2double scalings (uint8 / 255, uint16 / 65535, int16 (v + 32768) / 65535, logical 0 and 1) with a single result.
Example
im2single(uint8([0 255])) % single [0 1]Differences from MATLAB: none known for double, single, logical, uint8, uint16 and int16 input.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.