01-24-2013 04:37 PM
Hello,
I have I32 array to be displayed and I found nothing from Google. does any expert here know if there is a way to display I32 image?
I tried to use Fillimage to see if there is a way around, see attached with the data array.
from the testDatadisplay.vi, I can see that the Fillpixel Value change on the image but I can not see pixel color change on the image, whatever the ColorFill I select.
take pixel[2,2] for an example:
it has original value of -(2^31) ( this is the value for all background pixels outside the circle), I connect this value to the ComplexPixelValue
I want the -(2^31) value to be replaced on the image as FillPixel Value, and I also want this pixel color to change to ColorFill.
i.e I want the area outside the circle to be on a different color like the example illustrated.
It looks that the FillPixel Value can change the whole display mapping regardless of whatever ColorFill I choose.
is it the way how IMAQ display mapping work( base on all data value and adjust mapping )?
have I selected the right funaction Vi to do this? or is it diffucult in Labview?
if we can not fill pixel color, what is the purpose of Fillimage colorpixel function?
thanks for your time in advance.
xg
Solved! Go to Solution.
01-29-2013 11:41 AM
For the benefit of forum users, this was solved in the following way:
Rather than using IMAQ and turning your data file in to an image file, and manipulating that, we found that it was simpler to use an intensity chart and have the chart read the data file. By analysing the chart, we were able to find that the maximum value of the circle, ie the focus of the intensity, had a value of 317 and the minimum value was -237. We were then able to associate this into 5 blocks of colour from red to violet, panning the rainbow. When we split the rainbow in to sections, we also found the numeric value associated with each colour. This allowed us to achieve the desired effect that your ideal image had, with a textured rainbow image.
Next, we found that the value of the background would be just out of the limit of the circle, so we placed it as -238 and associated the colour black to it. Then, we used a colour block which would be used to change the colour of the background.