News for hackers. Stuff that matters.
Re:Conversion to Grayscale by gus_massa on Sunday September 01, 2024 @02:25PM (#41419061)
Nice, butit would benice to see side by side comparison in each method and also the effect on a real photo.
Re:Conversion to Grayscale by rspoerri on Thursday September 05, 2024 @09:13AM (#41456318)
Just because the colors in the top row get converted to a nice white to gray gradient doesn't make it right (or even better).

If you for example look at the full color spectrum to the lower right the first conversion makes more sense then the last. (at least in my opinion)

Re:Conversion to Grayscale by layer8 on Thursday September 05, 2024 @09:55AM (#41456683)
Something doesn’t seem to be right with either your visual perception or your display device.
Re:Conversion to Grayscale by volemo on Thursday September 05, 2024 @09:47AM (#41456587)
One should really use CIELAB colour space for visually accurate greyscale.
Re:Conversion to Grayscale by shiandow on Thursday September 05, 2024 @10:11AM (#41456814)
CIELAB uses the same Y. Sure they apply a nonlinear function to it, but if all you do is convert to CIELAB, remove chroma, then convert to sRGB you'll get an identical result.

The only real difference is what gamma function to use, but the one used here (or even just square/squareroot) should give results that are nigh impossible to tell apart from sRGB.

Re:Conversion to Grayscale by Retr0id on Thursday September 05, 2024 @09:55AM (#41456675)
Re:Conversion to Grayscale by myrmidon on Thursday September 05, 2024 @09:59AM (#41456711)
This ("lightness prediction") is one of the design criteria for the OKLAB color space, see: https://bottosson.github.io/posts/oklab/

The HSV color spectrum in the oklab article shows very clearly how the OKLAB lightness is a much better metric for whether a color is bright or not than HSV-value.

This article by comparison is very grayscale-focussed and concise, but gives less information on the physics behind it.