Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

CCD image acquisition and conversion to 24-bit bmp

I need to acquire 1 frame from a CCD camera and convert the image to 24-bit bitmap, so...

1) How do I acquire 1 frame from a CCD camera using LabView (no Image Processing Toolkit)? Is it SNAP and if so, how do I get the image from it?
2) How do I convert the acquired image from the CCD camera to a 24-bit Windows bitmap format?
0 Kudos
Message 1 of 3
(4,361 Views)
This is so much easier with the Vision Toolkit, but it is expensive for such a simple task, so here goes:

1. You want to use Snap, which will acquire a single image. Look at the IMAQ examples, which will show you how to create an image, Snap it, convert it to an array, and display it using an intensity graph.

2. Instead of using an intensity graph, you could use a picture control to display the array. You can also save Windows bitmaps using the picture control pallette. If it is a gray image, it will be saved as a standard 8 bit image. If it is color, it will be save in 24 bit format.

Bruce
Bruce Ammons
Ammons Engineering
0 Kudos
Message 2 of 3
(4,361 Views)
Complementing Bruce's answer, use "IMAQ ColorImageToArray.vi" to convert your IMAQ image into a format suitable for the picture indicator. This vi is located in:

Function palette -> IMAQ Vision -> Color

You need to allocate resources using "IMAQ Create.vi". Set the "Image Type" terminal to RGB.

Best regards;
Vargas
www.vartortech.com
0 Kudos
Message 3 of 3
(4,361 Views)