linux下调用opencv接口函数,在一张图片上面画框

#include


int main(int argc,char** argv)
{
cvNamedWindow("picture",CV_WINDOW_AUTOSIZE);


IplImage* image =cvLoadImage(argv[1]);

cvRectangle(image,cvPoint(5,5),cvPoint(200,200),cvScalar(255,255,255));


cvShowImage("picture",image);


cvWaitKey(0);


cvReleaseImage(&image);


cvDestroyWindow("picture");


return 0;
}

你可能感兴趣的:(opencv)