You should check if 'img' is NULL after cvLoadImage...
This might indicate that the supplied filename was not found...
You also don't have any check on the number of parameters supplied to
Try to include the image file into the same directory as the program...
Remember that you have to supply double backslashes in C string if you
want to specify a full path:
> I write a program to load one image bud it is not working can anyone help me whit this Code.
> here is the Exact Source:
> #include "highgui.h"
> int main( int argc, char** argv )
> IplImage* img = cvLoadImage( argv );
> cvNamedWindow( "Example1", CV_WINDOW_AUTOSIZE );
> cvShowImage( "Example1", img );
> cvReleaseImage( &img );
> cvDestroyWindow( "Example1" );
> Change settings: http://www.yahoogroups.com/mygroups, select
> Get Emails (get all posts)
> Daily Digest (one summary email per day)
> Read on the web (read posts on the web only)Or Unsubscribe by mailing [hidden email]