Skip to content

Instantly share code, notes, and snippets.

@aoktox
Created December 11, 2016 16:32
Show Gist options
  • Save aoktox/87cde4de94f636176e28b2e4b189eb6c to your computer and use it in GitHub Desktop.
Save aoktox/87cde4de94f636176e28b2e4b189eb6c to your computer and use it in GitHub Desktop.
OpenCV
#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