Articles Comments

{ Berbagi, Menulis, Dan Mengajar } Ilmu… » OpenCV » OpenCV 1

OpenCV 1

// halo.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "cv.h"
#include "cxcore.h"
#include "highgui.h"

int _tmain(int argc, _TCHAR* argv[])
{
	IplImage *img = cvLoadImage ("Image.bmp");
		cvNamedWindow("Image:",1);
		cvShowImage("Image:",img);

		cvWaitKey();
		cvDestroyWindow("Image:");
		cvReleaseImage(&img);


	return 0;


}

Filed under: OpenCV

Leave a Reply

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>