Load the image in greyscale, can be faster than loading as RGB8 then converting to greyscale. This will preserve an alpha channel, if existing. The resulting image will have 1 or 2 channels. Can't be used with LOAD_RGB flag.
See Implementation
Load the image in greyscale, can be faster than loading as RGB8 then converting to greyscale. This will preserve an alpha channel, if existing. The resulting image will have 1 or 2 channels. Can't be used with LOAD_RGB flag.