19,468
社区成员
发帖
与我相关
我的任务
分享
#include "stdafx.h"
#include "cv.h"
#include "highgui.h"
IplImage *image02 =0,*image03 = 0,*image04 = 0;
int _tmain(int argc, _TCHAR* argv[])
{
const char *filename ="d://Image001.bmp";
if ((image03 = cvLoadImage(filename,0))==0)//读入图像为灰度图像
{
return -1;
}
cvNamedWindow("Source",1);
cvShowImage("Source",image03);
CvPoint centerpoint;
centerpoint.x =100;
centerpoint.y =200;
cvCircle(image03,centerpoint,30,CV_RGB(255,255,255),3,8,1); //画圆,结果显示不出来
cvWaitKey(0);
cvReleaseImage(&image03);
cvDestroyWindow("Source");
return 0;
}