Citation:
cvSaveImage
Saves an image to the file
int cvSaveImage( const char* filename, const CvArr* image );
filename
Name of the file.
image
Image to be saved.
The function cvSaveImage saves the image to the specified file. The image format is chosen depending on the filename extension, see cvLoadImage. Only 8-bit single-channel or 3-channel (with 'BGR' channel order) images can be saved using this function. If the format, depth or channel order is different, use cvCvtScale and cvCvtColor to convert it before saving, or use universal cvSave to save the image to XML or YAML format.
Il doit y avoir la réponse à ton problème la dedans.