Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

IMAQ image locking

Hi,

 

I'm using C++ dll to do operations on IMAQ image buffer in the way shown in this link

http://forums.ni.com/t5/Machine-Vision/IMAQ-GetImagePixelPtr-Unmap-Pixel-Pointer-do-I-really-need-th...

 

My question is about image buffer locking mecanism. How do we ensure that the image buffer will not be used by another process while it is used in the DLL call?

0 Kudos
Message 1 of 2
(2,798 Views)

Hi dennex,

 

Unfortunately there is no public API function currently available in LV or C to lock images for external use. You currently have to manually synchronize your DLL calls with other functions (both yours and Vision's) that might modify the image.

 

Eric

0 Kudos
Message 2 of 2
(2,793 Views)