11-18-2011 09:18 AM
Hi all,
I am using the attached code to capture a .avi file of images from my camera using 'Grab'. However, depending on the acquisition speed of my camera, the images can have a good intensity (i.e. if integration times were longer) or conversely quite dim. The particular set-up I am building needs faster acquisition times, but this yield low intensity images which are difficult to make out.
Is there a way to rescale my images using max and min?
My camera is a Goodrich SUI line scan camera; the software provided with the camera seems to output images which are of better contrast than the ones obtained using my code making me think the provided code does some form of scaling. :manwink: I obtain the same images using my code as I do if I use Measurement and Automation Explorer. I have looked into Binary LUT tables, but this isn't really what I'm looking for.
Any thoughts, help or pointers would be greatly appreciated.
Kind regards,
CP
11-21-2011 02:14 AM
Hello,
I think your camera is outputing 16bit images, as I've seen, you convert them to 8bit as AVI only accepts 8bit or RGB images.
But you have to select the way you map 16bit to 8bit to keep the maximum dynamic.
Try first by setting your bit range manually.
Hope this helps
11-21-2011 03:32 AM
Hello toto26,
Thank you very much for replying to my post; I appreciate it
.
I have tried what you suggested by manually adjusting the bit range using IMAQ Image Bit Depth.vi. Although this does what I would like it to do I would like to perform something on the actual image such that the dynamic range of the image is consistent, irrespective of the exposure time chosen. I'd like to keep everything on the same level (i.e. not distrupt the data too much) so that it is not dependent on an arbitrarily chosen bit depth which suits one exposure time but saturates for another.
Any ideas?