01-26-2017 09:36 PM
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.
01-28-2017 02:22 PM
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
01-30-2017 08:20 AM - edited 01-30-2017 08:20 AM
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.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
01-30-2017 11:33 PM
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.
01-30-2017 11:37 PM
Hi. Thanks for responding. I'm trying to understand your VI. I already posted a tiff image.
01-31-2017 09:37 AM
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.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
01-31-2017 10:43 AM
01-31-2017 01:04 PM - edited 01-31-2017 01:07 PM
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.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
02-01-2017 01:13 AM
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.
02-01-2017 02:29 AM
@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.