11-12-2009 05:04 PM
Hi. It might be trivial, but I need your help ...
Basically, I need to convert a 2d array to an image using IMAQ ArraytoImage. The pixel values in the 2d array can be from 0 to 10 let's say but also from 0 to 1024 or 500 to 20000 etc. What I want is to always have a 16 bits image irrespective of the maximum value of the pixels in the 2d array. Apparently, now if your max value in the 2d array is let's say 1000 you get an 10 bits image, if it's 4 you get a 2 bits image? Am I write?
Is there any way to avoid this automatic rescaling and obtain always a 16 bits image?
Thanks for your help.
Solved! Go to Solution.
11-16-2009 03:06 AM
If my understanding is right
Irrespective of the number you get, You need to fillup your lsb or your msb with some value (Say 0000) and always maintain the 16 bit ratio.
11-16-2009 03:44 AM
11-16-2009 04:02 AM
so solved?
11-16-2009 04:25 AM
11-16-2009 04:37 AM