Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

IMAQ Extract vs. IMAQ Copy

Hello all,

 

I am benchmarking the performance of IMAQ Extract vs. IMAQ Copy.  To my surprise the IMAQ Extract takes 3-4 times longer to execute even though it is essentially copying less pixels.   Here is the result:  Any thoughts?

 

 

IMAQ Extract.PNG

0 Kudos
Message 1 of 2
(3,973 Views)

if you have a large chunk of contiguous memory, with respect to you image size, available so the memory manager doesn't spend much time looking for open memory space I don't see why copying an  image should take long. You are simply copying the data from a pointer into RAM. If you enlarge the image size significatnly and create a controlled memory leak you might get completely different results. 

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