Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

c code image processing

Solved!
Go to solution

Dear LabVIEW Experts,

 

Say I have some C code that takes a pixel array and does some manipulation and spits it back out. I want to capture an image and extract the array via LabVIEW, manipulate the array in C, and then get the new array back into LabVIEW. I understand LabVIEW has VIs for the imagetoarray / arraytoimage, but is there a simple way to integrate the C code? <--- If yes, can you explain it?

 

I'm using Labview 2011 SP1 and I have the Vision Acquisition software.

 

Thanks

0 Kudos
Message 1 of 3
(3,148 Views)
Solution
Accepted by topic author ledsrcool

I would build a DLL and in LabVUEW use a Call Libarary Node to call that function.
Search ni.com on how to build an call DLLs.

0 Kudos
Message 2 of 3
(3,145 Views)

@ledsrcool wrote:

 is there a simple way to integrate the C code? <--- If yes, can you explain it?

 


Read help:

 

IMAQ GetImagePixelPtr Example

 

Andrey.

Message 3 of 3
(3,141 Views)