WLJS LogoWLJS Notebook

ImageType

ImageType[image] gives the underlying type of values used for each pixel element in the Image object.

Examples

Get image type:

img = ExampleData[{"TestImage", "Lena"}];
ImageType[img]
(* "Byte" *)

Real-valued image:

ImageType[Image[RandomReal[1, {10, 10}]]]
(* "Real32" *)

Please visit the official Wolfram Language Reference for more details.

On this page