somu_mtech
somu_mtech

Reputation: 107

Save IplImage (not IplImage*) using cvSaveImage

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

Answers (1)

JMBise
JMBise

Reputation: 690

It's impossible you must to pass a pointer like this:

cvSaveImage("disparity.jpg", &ipl_from_mat);

Upvotes: 6

Related Questions