@kate this is very neat! Can I ask how you obtain the "perceived luminance?
@Globaltom The standard formula (from ITU-R Recommendation BT.601) is the weighted average 0.299 * red + 0.587 * green + 0.114 * blue
@Globaltom The standard formula (from ITU-R Recommendation BT.601) is the weighted average 0.299 * red + 0.587 * green + 0.114 * blue