Method ImWriteWithMetadata
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
ImWriteWithMetadata(string, Mat, ImageMetadataType[], IEnumerable<Mat>, int[]?)
Saves an image to a specified file, additionally writing metadata if the corresponding format supports it.
public static bool ImWriteWithMetadata(string fileName, Mat img, ImageMetadataType[] metadataTypes, IEnumerable<Mat> metadata, int[]? prms = null)
Parameters
fileNamestringName of the file.
imgMatImage to be saved.
metadataTypesImageMetadataType[]Array with types of metadata chunks stored in metadata to write.
metadataIEnumerable<Mat>Array of matrices with chunks of metadata to store into the file.
prmsint[]Format-specific save parameters encoded as pairs