Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 47 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top