06-19-2017 01:59 PM
Hello
I am interested in maintaining the 16 bits of information in the tiff files I am reading from a folder. I take those tiff files and do a BCG correction to the first one. I then apply those values to all of the tiff files. Then, I attempt to overlay some text on the image(ideally next to the image(I posted another discussion in the forum about that)). The edited tiff files are then written to a folder and then converted into a .avi file which is saved to a different folder. Is there a way to recover the 16 bits of information that I am forced to loose when completing functions such as IMAQ BCGLookup VI and IMAQ AVI2 Write Frame VI which require 8 bits? I have attached my VI let me know if you need anything else.
Thanks
06-20-2017 05:19 PM
Hi ChivasManiac12,
I'm not sure that I understand what you're looking to do. You have an image with higher resolution, which you then run through processes that require a lower resolution image. Are you asking whether you can take a reference to the original image and use it later in the process, or are you asking whether you can take a lower resolution image (post processing) and re-add the resolution back?
06-21-2017 09:17 AM - edited 06-21-2017 09:20 AM
The main issue I am having is in the last frame of my sequence. I take a folder of 16 bit grayscale images (tiff files), and I attempt to write them as frames in an AVI. The issue I am having is that the AVI file I save to my computer is just black when I open it. I had this issue before (when I was using 8 bit images) but it was resolved when I used the codec Microsoft video 1 and used the Windows media player to open the file. Now, when I am using unassigned 16 bit images the IMAQ AVI2 Write Frame requires me to set the bit depth of the image to 16 in order for the IMAQ write frame function to work (I think this is where the issue is but not sure what exactly it is). Is this an issue with using the right codec or the issue of using the 16 bit images? If so is there a solution? I would like to maintain the 16 bit images for further image processing. I attached two VIs: the 8 bit one that works and the 16 bit one that outputs a black avi. I also attached the avi that is black.
06-22-2017
05:11 PM
- last edited on
09-19-2025
05:24 PM
by
Content Cleaner
Hi Chivasmaniac,
Every time I've seen AVIs come out as solid black, it's been due to codec incompatibility. This article goes into more detail on one potential cause, but the easiest way to test would be to try working with a different codec, as described here. This page describes the compatible codecs in LabVIEW, in case that helps you choose.