Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <opencv2\highgui\highgui_c.h>
- int main(void)
- {
- int i;
- cvNamedWindow("Display window", CV_WINDOW_AUTOSIZE); //create a window
- //create an image
- IplImage* image = cvLoadImage("âĒC://Users//user//Desktop//logo.png", 1);
- if (!image)//The image is empty.
- {
- printf("could not open image\n");
- }
- else
- {
- cvShowImage("Display window", image);
- cvWaitKey(0);
- system("pause");
- cvReleaseImage(&image);
- }
- getchar();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement