rgb2gray#
- cuqi.data.rgb2gray(img)#
Convert RGB image to grayscale using the colorimetric (luminosity-preserving) method
See e.g. discussion in https://poynton.ca/PDFs/ColorFAQ.pdf page 6 on the benefit of this method compared to the classical [0.299, 0.587, 0.114] weights.