Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i read a *.bmp picture into labview


i'm using labview 5.1 and i already have the picture in a bmp format-all i need is processing it.
best regards,
Ofer Kadar
0 Kudos
Message 1 of 2
(3,873 Views)
To open a *.bmp file in LabVIEW, use "Read BMP File.vi", which is located in the diagram Function palette -> Graphics and Sound -> Graphics Formats. To view the *.bmp, the best way is using the Draw Flattened Pixmap.vi" located in Function palette -> Graphics and Sound -> Picture Functions. Create an indicator for the "New Picture" output.

If you have IMAQ, you can use "IMAQ Read File.vi", which is located in Function palette -> IMAQ Vision -> Files. To see the image, use IMAQ WindDraw, located in Function palette -> IMAQ Vision -> Display (basics) (You should allocate the necessary memory for the image using "IMAQ Create.vi". This vi is located in Function palette -> IMAQ Vision -> Management)

Good luck!
www.vartortech.com
Message 2 of 2
(3,873 Views)