摘要: 1 #include 2 #include 3 #include 4 /*鼠标画矩形*/ 5 void my_mouse_callback( 6 int event,int x,int y,int flag,void* param 7 ); 8 9 CvRect box; 10 bool drawing... 阅读全文
posted @ 2016-07-21 10:01 Gladitor 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 //开关 5 6 int g_switch_value = 0; 7 8 void switch_callback(int position) 9 { 10 if(position == 0) 11 { 12 printf("off\n"); 13 ... 阅读全文
posted @ 2016-07-21 10:00 Gladitor 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 //平滑处理 5 6 int main() 7 { 8 IplImage* src = cvLoadImage("../pic.jpg"); 9 IplImage* dst = cvCreateImage(cvGetSize(src),IPL_DEPTH_8U,3); 10... 阅读全文
posted @ 2016-07-21 09:56 Gladitor 阅读(301) 评论(0) 推荐(0) 编辑