Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

using IMAQ extract inside a loop

hi all,

I am developing an algorithm to count intense particles in an image. For which I used IMAQ count objects vi. and got center information for my objects.

Now I want to extract rectangular images from these center information. I am using IMAQ extract inside a loop and displaying image on front panel with screenshot option. It shows image for first loop run but afterwards it doesn't show anything. Can Anyone help me or suggest any other method to count objects?

Thanks in advance.

Labview user
0 Kudos
Message 1 of 3
(3,199 Views)

Is it possible for you to post a snapshot of your code?

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 2 of 3
(3,184 Views)

Hi,

As always, be sure to pass a destination buffer to your IMAQ extract function (the name of the buffer is also important, never use twice the same name to be sure to allocate new memory and don't forget to deallocate with IMAQ Close).

Otherwise, you will modify your source image, that might be the reason you only see it on the first iteration.

Hope this helps

0 Kudos
Message 3 of 3
(3,175 Views)