Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I get LabVIEW to see portable pixelmap files as an array?

Solved!
Go to solution
I have a point grey chameleon usb camera.  I have given up on having labview connect to the camera through IMAQ USB as it won't recognize it (issues witht the drivers and i believe point grey is working on this issue).  I have writtern a mouse control routine to control the program and give me my desired images.  I am trying to take these images and average every 5 pictures.  I can do this if I use the .raw image, but this only has the intensity of the pixels and no color information.  The only format the camera outputs that is an uncompressed color image is portable pixelmap (.ppm).  Unfortunately, LabVIEW does not recognize this format.  I would either like to change the file to an uncompressed tiff file or have it change the image to a 2D array of unsigned 8 bit integers.  Any help is appreciated.
0 Kudos
Message 1 of 6
(4,600 Views)
Solution
Accepted by topic author Il Papu

Hi,

 

PPM format is pretty easy.

Quick solution for reading may be like this:

 

 

Source in attachment.

May be you need to enhance this reader a little bit (for example, skip comment if present, width/height may present in separate lines, etc)

Andrey.

Message Edited by Andrey Dmitriev on 11-19-2008 11:10 PM
Download All
Message 2 of 6
(4,590 Views)

Andrey-

 

First of all,  THANK YOU VERY MUCH!!  I have been ripping my hair out trying to solve this problem.  Second, can I get those files in 8.5 format?  Thanks in advance.

 

A

0 Kudos
Message 3 of 6
(4,585 Views)

Welcome! Here version 8.5

 

0 Kudos
Message 4 of 6
(4,582 Views)

Dear Everyone,

       I am using a PointGrey Chameleon camera,which is having some conflict on ni drivers,please explain the way i can use the same camera in LabVIEW.

 

Regards

Rajkumar

Development Engineer

0 Kudos
Message 5 of 6
(4,328 Views)

Rajkumar,

If PointGrey provides a dll for the camera, this can be called in LabVIEW using a Call Library Function Node. 

 

-Christina

0 Kudos
Message 6 of 6
(4,305 Views)