Method ImReadWithMetadata
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
ImReadWithMetadata(string, out ImageMetadataType[], out Mat[], ImreadModes)
Reads an image from a file along with associated metadata (EXIF, XMP, etc.), depending on file format support.
public static Mat ImReadWithMetadata(string filename, out ImageMetadataType[] metadataTypes, out Mat[] metadata, ImreadModes flags = ImreadModes.Color)
Parameters
filenamestringName of the file to be loaded.
metadataTypesImageMetadataType[]Output array with types of metadata chunks returned in metadata.
metadataMat[]Output array of matrices to store the retrieved metadata.
flagsImreadModesFlag that can take values of @ref cv::ImreadModes.
Returns
- Mat
The loaded image. If the image cannot be read, the function returns an empty matrix.