Advertisement
Guest User

Untitled

a guest
Jun 13th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <opencv2\highgui\highgui_c.h>
  3. int main(void)
  4. {
  5. int i;
  6. cvNamedWindow("Display window", CV_WINDOW_AUTOSIZE); //create a window
  7. //create an image
  8. IplImage* image = cvLoadImage("â€ĒC://Users//user//Desktop//logo.png", 1);
  9. if (!image)//The image is empty.
  10. {
  11. printf("could not open image\n");
  12. }
  13. else
  14. {
  15. cvShowImage("Display window", image);
  16. cvWaitKey(0);
  17. system("pause");
  18. cvReleaseImage(&image);
  19. }
  20. getchar();
  21. return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement