#include "stdafx.h" #include "cv.h" #include "highgui.h" #include <stdio.h> void main(const char*filename) { if (filename ==0) { printf("The image not loaded\n"); return -1; } IplImage* input_im = 0; input_im = cvLoadImage(filename); cvNamedWindow("InputImage",CV_WINDOW_AUTOSIZE); cvShowImage("InputImage",input_im); cvWaitKey(0); cvDestroyWindow("InputImage"); cvReleaseImage(&input_im); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)