02-07-2017 08:54 AM
No not yet. I'll do that. The image is in the link.
https://drive.google.com/open?id=0B71N93kVyonTQ1JlbWdGRjVGX1E
02-07-2017 09:01 AM - edited 02-07-2017 09:02 AM
Uhhhh....I'm downloading it now but Google just complained that the file is greater than 1GB...Is there a reason this single image is larger than than a 2 hour movie? (which has 24 images/second and audio) It likely is at a higher resolution than your monitor can display anyway. It needs to be converted into an image that is more reasonable.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
02-07-2017 09:21 AM - edited 02-07-2017 09:27 AM
Okay well I see this is because the file contains 820 images. In this case I'd look into extracting each image into it's own file, then you can load that one file into the UI at a time.
Edit, here is one method of extracting images using the commandline and another tool.
http://superuser.com/questions/44600/how-to-split-a-multipage-tiff-file-on-windows
Double Edit: Also interestingly enough on my system it will load the first image, but then out of memory on any other, maybe there is a bug in my code that is leaking memory.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
02-07-2017 09:56 AM
Okay found a bug and fixed it. I wasn't releasing the previous image before loading the next, which normally wouldn't be a problem, except you are loading the same file each time and the file is quite large. This might look like a memory leak since old images aren't disposed before loading the next. Let me know if this works for you.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
02-08-2017 05:05 AM
Thank you so much. This one works very well.
04-08-2019 08:52 AM
Dear all,
thanks for the code.
It works on 8 bit MultiTiff files but not on 16bit files.
Does anyone tried to load a 16bit image?
Best regards.
04-09-2019 09:22 AM
I have not, do you have a 16bit tiff file you are willing to share to see what is happening? I suspect there is something wrong with the .net functions for image selection but am unsure what it could be.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
04-10-2019 01:32 AM
Here is an example of my 16bit image.
In the meantime, I successfully opened a 16 bit Multi-Tiff stack of thousand of images and I post here the result if someone is interested in this thread.To run it, you need to:
1- install 'tiff-3.8.2-1.exe'
2- run 'Read_Images_From_TIFFStack_Example.vi' located inside the 'MultiTiff.llb' Library where other vi's coming from the 'Libtiff3' post in this forum.
I hope this will help people.
05-14-2021 03:35 AM
Many thanks for sharing the code, it worked perfectly with my multi-page 16-bit .tiff files. I had so far been unsuccessful in loading up these files as the only code snippets I found using libtiff were assuming 8-bit files, so yours was indeed a godsend - many thanks!