Table of Contents

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

filename string

Name of the file to be loaded.

metadataTypes ImageMetadataType[]

Output array with types of metadata chunks returned in metadata.

metadata Mat[]

Output array of matrices to store the retrieved metadata.

flags ImreadModes

Flag 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.