文件名称:opencv 基础实验例子
文件大小:41.08MB
文件格式:ZIP
更新时间:2017-05-19 11:01:17
opencv
int _tmain(int argc, _TCHAR* argv[]) { gsrcimage=cvLoadImage("lena.jpg",CV_LOAD_IMAGE_GRAYSCALE); gcannyimage=cvCreateImage(cvGetSize(gsrcimage),IPL_DEPTH_8U,1); cvNamedWindow("lena",CV_WINDOW_AUTOSIZE); cvNamedWindow("canny",CV_WINDOW_AUTOSIZE); int nThresholdEdge=1; cvCreateTrackbar("threhold","canny",&nThresholdEdge,100,on_trackbar); cvShowImage("lena",gsrcimage);