Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How is imaqSubtract so fast?

I'm trying to write my own image subtraction script and am only getting half of the framerate that I do with imaqSubtract function and I was wondering if NI was doing something tricky to get the higher frame rate. 

 

I am using imgSessionCopyBuffer to copy the image data from the ring I set up to an array already stored in memory.  Then I subtract another array that already has an image stored in it  and display the differenced image.

 

I can get 30 Hz using imaqSubtract but can only get 15 Hz using my function.

The camera's bit depth is 12 bits and the array the images are stored in are shorts (16 bit).

 

Thanks!

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

Sorry, wrong board.  How can I delete this thread?

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