Hi,
I'm sorry I didn't reply to your original thread, like I said.
If you have a 2d array of 8-bit values, make two for loops inside each
other. For each value, do the calibration operation you like to do. The
fastest way is to make a 1d array of values outside the two for loops, and
in the two for loops, look each gray scale value up in the 1d array.
If you are looking up the original values from the bitmap in the lookup
table of the bitmap, you could modify the original lookup table to reflect
the calibrated values. This will save processor time.
Hope it helps,
Wiebe.
"mepgkas"
wrote in message
news:506500000008000000916D0000-1031838699000@exchange.ni.com...
> If I obtain an array from a grayscale picture which shows the
> grayscale pixel val
ues from 0-255, how do I calibrate this onto
> another array so I can use the new data within an equation. For my
> project each value of grayscale is equivalent to a temperature. For
> example the value of intensity 20 is equivalent to 2380K, 40~1920K How
> can I do this. Please help!