internal static extern void imgcodecs_imdecode_vector(byte[] buf, int bufLength, IMREAD_COLOR flags, out IntPtr output);
public Mat imread(string filename, IMREAD_COLOR flags = IMREAD_COLOR.IMREAD_COLOR) { cv2_native_api.imgcodecs_imread(filename, (int)flags, out var handle); return(new Mat(handle)); }