OpenCV学习(28) 轮廓
摘要:
OpenCV中可以方便的在一副图像中检测到轮廓,并把这些轮廓画出来。主要用到两个函数:一个是findContours( img, contours0, hierarchy, RETR_TREE, CHAIN_APPROX_SIMPLE);另一个是drawContours( cnt_img, contours, idx, color, 1, 8, hierarchy );int main( int argc, char**) { Mat img = Mat::zeros(w, w, CV_8UC1); //画6个卡通头像 for( int i = 0; i > con... 阅读全文
posted @ 2013-11-10 19:29 迈克老狼2012 阅读(2931) 评论(0) 推荐(0)
浙公网安备 33010602011771号