Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

goodfeaturestoTrack with Mask

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...