Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <opencv2/core/core.hpp>
- #include <opencv2/highgui/highgui.hpp>
- #include <stdio.h>
- #include <cv.h>
- #include <highgui.h>
- int main(int argc, char* argv[])
- {
- int x;
- cin>>x;
- const char* myImagePath = "C:\\Users\\ИМЯ_ПОЛЬЗОВАТЕЛЯ\\Pictures\\ИМЯ_ФАЙЛА.png";
- IplImage* img = cvLoadImage(myImagePath, CV_LOAD_IMAGE_UNCHANGED);
- if (!img)
- {
- return -1;
- }
- cvNamedWindow("display", CV_WINDOW_AUTOSIZE);
- cvShowImage("display", img );
- cvWaitKey(0);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment