Hi,
I'm using IMAQ Vision Tools to display images. I have a 2D-Array (data type DBL) with positive and negative values. I want to display this array as a color image where negative values are blue and positive values are red, values around zero should appear as black. I want to specify the range, too (like range from -10 to +10, -10 should be blue, +10 red, 0 black).
I did it by using two for loops to calculate a 32bit unsigned integer value for each value in my array, creating a 32bit unsigned integer array and display it with IMAQ ArraytoColorImage. But this would take too long, my application is time critical, especially when I have large arrays. Is there a more convenient and faster way to solve my problem?
Thanks in advance,
Gernot