Created
December 11, 2016 16:32
-
-
Save aoktox/87cde4de94f636176e28b2e4b189eb6c to your computer and use it in GitHub Desktop.
OpenCV
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cv.h> | |
#include <highgui.h> | |
using namespace cv; | |
using namespace std; | |
int main( int argc, char** argv ) | |
{ | |
Mat image; | |
image = imread("/home/agus/Desktop/FKN04K0HWTBIEL2.MEDIUM.jpg", CV_LOAD_IMAGE_COLOR); | |
if(! image.data ) | |
{ | |
cout << "Not found" << std::endl ; | |
return -1; | |
} | |
namedWindow( "gambar", WINDOW_AUTOSIZE ); | |
imshow( "gambar", image ); | |
waitKey(0); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment