Ask Your Question

Revision history [back]

i get a solid grey color on my window if i open a image

Steve sir as u said i tried with new versions of opencv but problem still pertains.. please help me out this is the code

include "stdafx.h"

include "cv.h"

include "highgui.h"

int _tmain(int argc, _TCHAR* argv[]) { IplImage* img = cvLoadImage( "image" ); cvNamedWindow( "MyJPG", CV_WINDOW_AUTOSIZE ); cvShowImage("MyJPG", img); cvWaitKey(0); cvReleaseImage( &img ); cvDestroyWindow( "MyJPG" ); return 0; }

click to hide/show revision 2
No.2 Revision

i get a solid grey color on my window if i open a image

Steve sir as u said i tried with new versions of opencv but problem still pertains.. please help me out this is the code

include "stdafx.h"

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

include "cv.h"

include "highgui.h"

int _tmain(int argc, _TCHAR* argv[]) { IplImage* img = cvLoadImage( "image" ); cvNamedWindow( "MyJPG", CV_WINDOW_AUTOSIZE ); cvShowImage("MyJPG", img); cvWaitKey(0); cvReleaseImage( &img ); cvDestroyWindow( "MyJPG" ); return 0; }

}