#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <iostream>
using namespace cv;
using namespace std;
int main(int argc, char** argv)
{
Mat image;
image = imread(이미지파일, IMREAD_COLOR); // Read the file
if (!image.data) // Check for invalid input
{
cout << "Could not open or find the image" << std::endl;
return -1;
}
namedWindow("Display window", WINDOW_AUTOSIZE);// Create a window for display.
imshow("Display window", image); // Show our image inside it.
waitKey(0); // Wait for a keystroke in the window
return 0;
}
'개발일지(Platform & Library) > OpenCv(2.x)' 카테고리의 다른 글
2. OpenCV (0) | 2016.09.22 |
---|---|
1. OpenCV OverView (0) | 2016.09.22 |
opencv-3.1.0 - Visual Studio 2013 세팅하기 (0) | 2016.08.08 |
OpenCV 버전별 사용하는 객체 상호 변환 (0) | 2016.06.28 |