LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

pixmap to imaq image

Hi,

I want to be able to use the IMAQ analysis tools to analyse images aquired by other means then a vision camera, as in this case the web. I have some conversion problem however when I try to get the image into the IMAQ-image format.

I tried the unflatten pixmap connected to the 'IMAQ ArrayToColorImage' as in the attached .vi, but as you can see the 24 bit pixmap is not compatible with the u32 input of the IMAQ-vi.

Any suggestions of how to do this?

I managed to do it by saving the image as a jpeg and then loding it with the 'load image' IMAQ vi, but that seems like a very ugly way of doing it.
0 Kudos
Message 1 of 4
(4,346 Views)

Hi Mathias_P,

i have changed your vi a little bit and connected a constant to the image type input. Now it works. Hope it helps. Smiley Happy

Mike



Message Edited by MikeS81 on 04-28-2008 09:31 AM
0 Kudos
Message 2 of 4
(4,332 Views)
Aah, it needs the constant to know the picture format. Thanks.

The program looks really good now, I should learn som LV-aestetics Smiley Happy

ty again.

Mathias
0 Kudos
Message 3 of 4
(4,326 Views)

I'm on 2016 and am seeing the following response:

 

'IMAQ ArrayToColorImage' was not found.  Has this be deprecated.  Is there another more suitable VI?

0 Kudos
Message 4 of 4
(3,020 Views)