摘要:
View Code 1 void my_mouse_callback(int event,int x,int y,int flags,void* param); 2 3 CvRect box; 4 5 bool drawing_box=false; 6 7 // a little subroutine to draw a box on to an image 8 void draw_box(IplImage* img,CvRect rect) 9 {10 cvRectangle(img,cvPoint(box.x,box.y),cvPoint(box.x+box.width,b... 阅读全文
posted @ 2011-09-30 15:54
Ming明、
阅读(2123)
评论(0)
推荐(0)
摘要:
View Code 1 //ROI的蓝色通道增加150灰度值效果 2 IplImage* src; 3 if((src=cvLoadImage("fruit.jpg",1))!=0) 4 { 5 int x=10; 6 int y=20; 7 int width=50; 8 int height=100; 9 int add=150;10 cvSetImageROI(src,cvRect(x,y,width,height));11 cvAddS(src,c... 阅读全文
posted @ 2011-09-30 15:27
Ming明、
阅读(1617)
评论(0)
推荐(0)
浙公网安备 33010602011771号