Read Image File
Description
Read an image file. The file format can be a standard format (BMP, TIFF, JPEG/JPG, TIFF, GIF, PNG, PPM, PGM and WebP) or a nonstandard format known to the user. Type : polymorphic.
Documentation illustration (illustration unavailable in the archive).
Input parameters
Documentation illustration (illustration unavailable in the archive). Image Src : class
Documentation illustration (illustration unavailable in the archive). File Path : path, file path (BMP, TIFF, JPEG/JPG, TIFF, GIF, PNG, PPM, PGM and WebP).
Output parameters
Documentation illustration (illustration unavailable in the archive). Image Dst : class, the type adapts to the image file.
Documentation illustration (illustration unavailable in the archive). File Type : string, file extension.
Documentation illustration (illustration unavailable in the archive). File Info : cluster,
Documentation illustration (illustration unavailable in the archive). Width : integer, image width.
Documentation illustration (illustration unavailable in the archive). Height : integer, image height.
Documentation illustration (illustration unavailable in the archive). Image Type : integer, specifies the type of the image.
-
-
-
-
- Grayscale (U8) : 8 bits per pixel (unsigned, standard monochrome)
- Grayscale (I16) : 16 bits per pixel (signed)
- Grayscale (SGL) : 32 bits per pixel (floating point)
- Complex (CSG) : 2 × 32 bits per pixel (floating point)
- RGB (U32) : 32 bits per pixel (red, green, blue, alpha)
- HSL (U32) : 32 bits per pixel (hue, saturation, luminance, alpha)
- RGB (U64) : 64 bits per pixel (red, green, blue, alpha)
- Grayscale (U16) : 16 bits per pixel (unsigned)
-
-
-
Documentation illustration (illustration unavailable in the archive).
Examples
All these examples are snippets PNG, you can drop these Snippet onto the block diagram and get the depicted code added to your VI (Do not forget to install Computer Vision library to run it).
Read an image file
Code used for this video
Documentation illustration (illustration unavailable in the archive).
