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.