LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

load image

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

0 Kudos
Message 1 of 2
(2,080 Views)

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?

Cédric | NI Belgium
0 Kudos
Message 2 of 2
(2,059 Views)