Getting the number of markers in a vector
Posted: Sat Dec 28, 2013 9:54 am
I'm woking with the vector tracking sample project.
after the loop that iterates over the object found in the frame:
when trying to get the number of markers pushed to the vector, I get 0! always.
int r= vec->MarkerCount();
r=0 always!
how come? Is there any filtering of bigger/smaller objects?
Note that if I use frame->ObjectCount() I get the number.
after the loop that iterates over the object found in the frame:
Code: Select all
for(int i=0; i<frame->ObjectCount(); i++)
{
cObject *obj = frame->Object(i);
float x = obj->X();
float y = obj->Y();
Core::Undistort2DPoint(lensDistortion,x,y);
vec->PushMarkerData(x, y, obj->Area(), obj->Width(), obj->Height());
}
int r= vec->MarkerCount();
r=0 always!
how come? Is there any filtering of bigger/smaller objects?
Note that if I use frame->ObjectCount() I get the number.