You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Draw the checkbox-like contours which were found in green Scalar(0, 255, 0, 255) so you can see what the function is doing...
*/
drawContours(mbgra, contours, -1, Scalar(0, 255, 0, 255), 2);
Activity
cesine commentedon Mar 9, 2012
Step 1: You can get some contours by applying a threshold on the image (see code in jni/image_processing.cpp)
vector<vector > contours;
findContours(thresh, contours, CV_RETR_EXTERNAL, CV_CHAIN_APPROX_NONE);//###
Step 2: Draw your contours
/*
*/
drawContours(mbgra, contours, -1, Scalar(0, 255, 0, 255), 2);
For more details on what the parameters are for the drawContours function, see the friendly OpenCV docs:
http://opencv.itseez.com/modules/imgproc/doc/structural_analysis_and_shape_descriptors.html?highlight=drawcontours#cv.DrawContours