cancel
Showing results for 
Search instead for 
Did you mean: 

Read multi-image tiff

SOLVED
john1626
Member
Solved!

Read multi-image tiff

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. 

28 REPLIES 28
Bob_Schor
Knight of NI

Re: Read multi-image tiff

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

Hooovahh
Proven Zealot

Re: Read multi-image tiff

Message contains a hyperlink

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

john1626
Member

Re: Read multi-image tiff

Message contains an attachment

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.

john1626
Member

Re: Read multi-image tiff

Message contains an attachment

Hi. Thanks for responding. I'm trying to understand your VI. I already posted a tiff image.

Hooovahh
Proven Zealot

Re: Read multi-image tiff

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.

Wind.G
Member

Re: Read multi-image tiff

Message contains a hyperlink

Image Toolbox

http://webspace.webring.com/people/og/gtoolbox/

can do that.

 

Hooovahh
Proven Zealot

Re: Read multi-image tiff

Message contains an attachment

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.

john1626
Member

Re: Read multi-image tiff

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.

Highlighted
Yamaeda
Proven Zealot

Re: Read multi-image tiff


@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.

 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer