Hello! I'm new in LabVIEW. Does anybody know how to read a multi-image tiff file? Right now with IMAQ vision, I can only read 1 tiff image.
Thanks.
Solved! Go to Solution.
Why don't you attach your code (no pictures of code, please) and a sample multi-image tiff for us to "chew on"?
Bob Schor
I'm not too familiar with the TIF file format but I downloaded an example TIF file and it loaded in this example code I posted a while ago which uses a .Net Picture box. The image is then exported back into the LabVIEW Image Data and displayed as a 2D Picture. If this doesn't work with your image you should post it. There are probably better solutions involving parsing the file which don't add the .Net dependency but this is the easiest solution.
https://forums.ni.com/t5/LabVIEW/NET-picturebox-convert-to-LabView-image/m-p/3125944#M897890
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
Hello. My code is very easy. I just used the IMAQ create function. The problem is that it will only read 1 image of a tiff file. I need to read all the images in it.
Hi. Thanks for responding. I'm trying to understand your VI. I already posted a tiff image.
Oh I didn't realize TIF had multiple images embedded in it similar to what an ICO can have. I know of no way to grab multiple images from the TIF in IMAQ, or the code I posted which it seems will just display the first image in the file.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
Okay I just updated my Image Manipulation code which uses the .Net Picture Box. It always supported ico and tif files but now there is an added control called Image Index which for these two file types is able to view for both the ico and tif file. It at the moment displays this in a picture box, and exports it to LabVIEW data and displays it in a 2D picture indicator. The Image Index control also coerces to the number of images in the file so if your file has two images in it, the control can only be 0 or 1.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
Thanks. What does the image index do? Your code can read the number of images, I'll try to understand that part maybe I can do something about it so that I can view the other images.
@john1626 wrote:
Thanks. What does the image index do? Your code can read the number of images, I'll try to understand that part maybe I can do something about it so that I can view the other images.
It selects one of the included pictures.