Click or drag to resize

Mat Constructor (String, ImreadModes)

Loads an image from a file. (cv::imread)

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public Mat(
	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
See Also