Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i do image processing using pci imaq 1408 and visual c 6?

Hi, I'm alfredo Castanon a master student, i am working on a vision system, using a imaq pci 1408 board, a high performance monochrome ccd cohu camera mod:4915, pc features: pentium 4, 128Mb RAM, OS: windows XP and it works great, becouse i can adquire snap shots (photographs) using the software MAX (Mesurement and Automation Explorer ver. 2) and also using the included examples for visual c however i need to be doing image processing but using some algorithms designed by me. according to your examples ( to be more specific C:\Archivos de programa\National Instruments\NI-IMAQ\Sample\MSVC\Snap\HL Snap) you are using the variable ImaqBuffer as pointer to pointer that means that the image information is on
other side(where ImaqBuffer points) so can i do my image processing? and if the processing can be done could you give me an example for it?

thanks in advance.
0 Kudos
Message 1 of 2
(3,270 Views)
ImaqBuffer is actually a pointer to the actual data. What you pass when doing a snap is a pointer to the address of ImaqBuffer. It needs a pointer to ImaqBuffer so that it can place the address of the image array into ImaqBuffer. ImaqBuffer then points at the first element of the image data. You'll need to do pointer math from there or cast the pointer to a 2D array to access specific pixels in the array.

Good Luck!
0 Kudos
Message 2 of 2
(3,270 Views)