11-10-2013 11:08 PM - edited 11-10-2013 11:20 PM
Hello.
I'm trying to calculate 'the Center of mass' on each frame by using the dlls.
The DLL includes the algorithm of Center of mass.
So I'm using the Imaq GetImagePixelPtr to get image's pointer.
When I applied to "Lena gray scale Image", it returned an accurate result.
However, in real-time processing, it returns "the first frame's pointer out" repeatedly on all frames.
How can I get the image's pointer on each frame separately in real-time processing?
Thanks in advance
11-14-2013 06:49 AM
Hello,
attach the .vi and the .dll, so that we can take a look.
Best regards,
K
11-14-2013 03:51 PM
You are passing the same single image every time to Grab, so of course it will have the same pointer every time (unless the image is resized or re-allocated for some reason). What you are seeing is expected.