04-17-2012 09:34 AM
hi i am trying to load a picture, but as you see when you use my program the colors arent very nice
so i thought to use the IMAQ function color image to arrey, but when i did an operation on
this arrey for instance to greyscale( included in vi) he doesn't want to show the image anymore
greets
04-18-2012 04:38 AM
Hello,
The problem you have is a problem of representation. You try to feed an array containing 24-bit RGB values to an Intensity Graph which has not the right colormap to display the datas correctly.
Instead, you should use a 2D Picture indicator on your Front Panel to display any kind of picture with the help of Draw Flattened/Unflattened Pixmap VI.
See this post for an example of how to handle that plus a grayscale conversion.
Does this reply to your question?