Click or drag to resize

Cv2ImRead Method

Loads an image from a file.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntax
public static Mat ImRead(
	string fileName,
	ImreadModes flags = ImreadModes.Color
)

Parameters

fileName
Type: SystemString
Name of file to be loaded.
flags (Optional)
Type: OpenCvSharpImreadModes
Specifies color type of the loaded image

Return Value

Type: Mat
See Also