uint8
Convert to unsigned 8-bit integer (range 0 to 255).
Syntax
Section titled “Syntax”S = uint8(X)Description
Section titled “Description”Returns X converted to uint8. Values outside [0, 255] are saturated to the nearest representable value. Common for image data.
Example
Section titled “Example”uint8(300) % 255 (saturated)