The JS code seems to output linear RGB directly to the webpage (missing gamma). I guess the difficulty with "adding gamma" to it is this: if the training data were also gamma encoded, then it might need to be refit with linear values.
Show HN: Simple algorithm and color space to generate diverse skin tones
121–129 of 129 posts
Re: Show HN: Simple algorithm and color space to generate diverse skin tones
#122> What colors are we? The short answer is maybe something like “brown” and the long answer is very, very long. Pete Shirley (author of Ray Tracing In One Weekend) is also a part time color scientist, and he clued me into the fact that if you crank the saturation to 100% of pictures of people of any race, the skin color comes out orange. I think I heard that some face detectors may work on this principle, but I don’t…
[flagged]
Re: Show HN: Simple algorithm and color space to generate diverse skin tones
#123Re: Show HN: Simple algorithm and color space to generate diverse skin tones
#124Re: Show HN: Simple algorithm and color space to generate diverse skin tones
#125Re: Show HN: Simple algorithm and color space to generate diverse skin tones
#126This is beautiful work! First, I thought this would involve using PCA to go from 3D to 2D, which would result in an easier selector to use, but at the expense of representing every person. Then, I thought this would stop at using the U-space vectors (the ones that form the basis of the PCA image) and their corresponding ellipse to form our color space, but no, the function fitting is a very slick idea, even if it was…
If you look at my doctoral thesis, in fact skin colour can be parametrised using melanin and haemoglobin concentration; which it means it is indeed (roughly) two dimensional. This allows you to invert the colour of a pixel and identify someone’s chromophore concentration. This is based on previous work of others cited in the thesis. https://discovery.ucl.ac.uk/id/eprint/10093345/
Re: Show HN: Simple algorithm and color space to generate diverse skin tones
#127Earlier quoted context omitted.
> People only turn yellow if they have kidney or liver damage. This is not true. Roughly 5% of people have Gilbert's Syndrome which is genetic, metabolic abnormality where the bilirubin from dead blood cells are conjugated slower than the baseline patient leading to yellowing of the skin. It is not due to liver damage or disease and is a benign condition. Not to mention there is carotenemia from eating too many carro…
Gilbert's is a liver disease... https://my.clevelandclinic.org/health/diseases/17661-gilbert...