OpenCvSharp.Cv2.ImRead C# (CSharp) Method

ImRead() public static method

Loads an image from a file.
public static ImRead ( string fileName, ImreadModes flags = ImreadModes.Color ) : Mat
fileName string Name of file to be loaded.
flags ImreadModes Specifies color type of the loaded image
return Mat
        public static Mat ImRead(string fileName, ImreadModes flags = ImreadModes.Color)
        {
            return new Mat(fileName, flags);
        }
Cv2