Tutorial : how to open a image with opencv.
- This picture in directory D:/Capt.jpg
- This tutorial use Bahasa C / C++ progrmming.
#include "stdafx.h" #include "cv.h" #include "highgui.h" int _tmain(int argc, _TCHAR* argv[]) { IplImage *img = cvLoadImage("D:/Capt.jpg"); cvNamedWindow("Image:",1); cvShowImage("Image:",img); cvWaitKey(); cvDestroyWindow("Image:"); cvReleaseImage(&img); return 0; }
Now you can compile this source code.
0 komentar:
Post a Comment