How do i use the mask parameter for the GoodFeatureToTrack function?..
right now i give it this
goodFeaturesToTrack(grayframe, points, 500, 0.01, 10, Mat(frame,faces.back()), 3, 0, 0.04);
Which give me this error which i seem to be stuck with.
OpenCV Error: Assertion failed (mask.empty() || (mask.type() == CV_8UC1 && mask.size() == image.size())) in goodFeaturesToTrack...