Table of Contents

Method ImRead

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

ImRead(string, ImreadModes)

Loads an image from a file.

public static Mat ImRead(string fileName, ImreadModes flags = ImreadModes.Color)

Parameters

fileName string

Name of file to be loaded.

flags ImreadModes

Specifies color type of the loaded image

Returns

Mat