15Saving and Reading Images
15.1 Saving Image
You can save images using IMAQ Write File as seen in Figure 15.1, which is found from the function palette in Vision and Motion»Vision Utilities»Files.
As seen in Figure 15.2, various kinds of image formats such as BMP, JPEG, PNG, and TIFF can be selected to save image file using the IMAQ Write File function.
The available types of images are summarized in Table 15.1.
Table 15.1 Image type.
BMP (BitMaP image) | JPEG (Joint Photographic Coding Experts Group) | PNG (Portable Network Graphics) | TIFF (Tagged Image File Format) |
Image from camera is bitmap image, which has the image values on each pixel location. The bitmap image is not compressed | JPEG is one of the image compressing methods. The color image can be effectively compressed by using JPEG. Here, the quality and the size of the image can be adjusted | PNG has been widely used in the Web to realize bitmap image | The data information of image was saved in the form of Tag in front of the image. From this, image type can be recognized |
When using IMAQ Write File, you can specify the Compression Ratio or Image Quality, as seen in Figure 15.3 (IMAQ Write file for JPEG) and Figure 15.4 (IMAQ Write file for JPEG2000).
Get Practical Guide to Machine Vision Software: An Introduction with LabVIEW now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.