imwrite
(const string& filename, InputArray img, const vector<int>& params=vector<int>() )& params)'>¶cv2.
imwrite
(filename, img[, params]) → retval¶cvSaveImage
(const char* filename, const CvArr* image, const int* params=0 )¶cv.
SaveImage
(filename, image) → None¶Parameters: |
|
---|
imwrite
saves the image to the specified file. The image format is chosen based on the filename
extension (seeimread()
for the list of extensions). Only 8-bit (or 16-bit unsigned (CV_16U
) in case of PNG, JPEG 2000, and TIFF) 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, useMat::convertTo()
, andcvtColor()
to convert it before saving. Or, use the universal FileStorage
I/O functions to save the image to XML or YAML format.Cookbook Topics | |
---|---|
Introduction and Installation | |
Annotating Images | |
Color Image Processing | |
Deconvolution | |
Image Intensity Processing | |
Importing Image Files | |
Particle Analysis | |
Saving and Exporting | |
Stack-slice Manipulations | |
T-functions | |
Z-functions |