| 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
)
Public Sub New (
fileName As String,
Optional flags As ImreadModes = ImreadModes.Color
)
public:
Mat(
String^ fileName,
ImreadModes flags = ImreadModes::Color
)
new :
fileName : string *
?flags : ImreadModes
(* Defaults:
let _flags = defaultArg flags ImreadModes.Color
*)
-> Mat
Parameters
- fileName
- Type: SystemString
Name of file to be loaded. - flags (Optional)
- Type: OpenCvSharpImreadModes
Specifies color type of the loaded image
See Also