共 6 篇文章 |
|
示例代码 Mat image=imread("chuli.jpg"); int x2,y2,i,j; double pi=3.14159265358979323846264; double angle=pi/12; int dx = (int)(image.cols*cos(angle) + image.rows*sin(angle)); //新图像的宽度 int dy = (int)(image.cols*sin(angle) + image.rows*cos(angle)); //新图像的长度 Mat dst(dy,dx,CV_8UC3,Scalar(0)); //新建... 阅111 转2 评0 公众公开 16-10-26 22:10 |
//此处添加图像处理的代码//CDialog::OnOK();IplImage *frame = NULL; //定义帧,每帧就是一张图 IplImage *B_part = NULL, *G_part = NULL, *R_part = NULL;IplImage *pFrImg = NULL; //前景图片IplImage *pBkImg = NULL; //背景图片IplImage *dst = NULL;while (frame = cvQueryFrame(pCapture)) { if(count ==1){B_part = cvCreateImage(cvGe... 阅31 转0 评0 公众公开 16-10-20 08:55 |