Reputation: 107
I want to save an IplImage (not IplImage*) using the code bellow
IplImage ipl_from_mat((IplImage)imgDisparity8U);
cvNamedWindow("window", CV_WINDOW_AUTOSIZE);
variable when you need it as IplImage*
cvShowImage("window", &ipl_from_mat);
cvSaveImage("disparity.jpg",ipl_from_mat);//Problem with this line
But it seems that it cant be possible . PLease help me.
Thanks and Regards Somu
Upvotes: 0
Views: 4139
Reputation: 690
It's impossible you must to pass a pointer like this:
cvSaveImage("disparity.jpg", &ipl_from_mat);
Upvotes: 6