Hi, this is probably a really simple question but i cant seem to get this right for some reason. I am trying to port my triangulation code over to work with ofxCv to hopefully get a performance increase. Only problem is i cant seem to get an array of points easily…
When using ofxOpenCv i am able to get an array of points from detected blobs by going
ofxCvBlob currentBlob;
currentBlob = contourFinder.blobs[i];
for (int j = 0; j < currentBlob.nPts; j+=resolution){
triangulator.addPoint(currentBlob.pts[j].x, currentBlob.pts[j].y);
}
Does anyone know the equivalent to getting .nPts from a contour to use using ofxCv? I’ve looked at the examples but i cant seem to get the right data.
Thanks.