Read a image from a file name with opencv API.
filename – file name of the image
flags –
RGB or grayscale image