I’m having trouble trying to have a copy of the contour information be accessible from a class.
I tried treating the contour finder as a pointer, but I’m getting an error when I try to send it to a class. It’s probably a basic error about using pointers, but i haven’t been able to figure it out…
ofCvContourFinder * contourFinder;
#include "ofCvMain.h" ofCvContourFinder * cfPtr;
contourFinder = new ofCvContourFinder (); myClassArray[i].cfPtr = contourFinder;
contourFinder->findContours(grayBg, 20, p.width * p.height, 6, false);