Live data from Hacker News

Show HN: Simple algorithm and color space to generate diverse skin tones

toneyalexander.github.io

61–70 of 129 posts

Re: Show HN: Simple algorithm and color space to generate diverse skin tones

#61

Earlier quoted context omitted.

All skin is slightly translucent, and color/tones forms a gradient across the surface of the skin. Your upper cheeks and forehead are usually slightly reddish, and the chin/neck are slightly bluish. People only turn yellow if they have kidney or liver damage. However, some distinctive features like Lucy Liu's natural freckles are tough to draw right. We looked around a lot for a procedural texture/shader to help make…

> 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…

[flagged]

Re: Show HN: Simple algorithm and color space to generate diverse skin tones

#62
post #54

It's always entertaining to try to understand these things from first principles. Color and skin color in particular are very complex things to measure and model. It's not just a physical quantity, it's also a matter of human perception based on lighting and a host of factors. It seems like some work was done to research existing approaches, but I don't see any reference to Pantone Skin Tones [0]. Without intending t…

There's also the Monk Skin Tone Scale by Dr. Monk and Google (available under a CC attribution 4.0 international license). It was developed for machine learning, so it's not exactly the same use case, but it provides 10 colors in a variety of formats, including hexadecimal. https://skintone.google/get-started

Re: Show HN: Simple algorithm and color space to generate diverse skin tones

#63
post #54

It's always entertaining to try to understand these things from first principles. Color and skin color in particular are very complex things to measure and model. It's not just a physical quantity, it's also a matter of human perception based on lighting and a host of factors. It seems like some work was done to research existing approaches, but I don't see any reference to Pantone Skin Tones [0]. Without intending t…

well its not a free as in beer color space

Re: Show HN: Simple algorithm and color space to generate diverse skin tones

#64
Nice. This is relatively old work (2020) but Pinterest had/has skin tone features, for example if you're searching for cosmetic products. Worth a check if anything might be useful for your work. https://medium.com/pinterest-engineering/powering-inclusive-...

Re: Show HN: Simple algorithm and color space to generate diverse skin tones

#65

Earlier quoted context omitted.

I've heard that the so-called "yellowish" skin color that non-tanned East Asians tend to have, is due to relative abundance of subcutaneous fat. If that's true, is that captured by the haemoglobin dimension or is it a yet another degree of freedom?

We used the approximation that the hypodermis was a perfectly white reflector; so the thickness wouldn’t matter. The collagen fibrills scatter light in such a way to create a yellower tint. So a person’s skin might appear this way in the absence of melanin and haemoglobin. I’m not an expert on population statistics, and so cannot give an opinion on specific skin types. Everything was based on ranges. There is a separ…

This brings up an interesting topic of atypical compounds that can visibly affect skin coloring -- whether temporary or more long-lived (such as elevated methemoglobin levels in the Blue Fugates of Kentucky).

It's fascinating to learn that melanin and haemoglobin are the two primary factors (and cover the vast majority of cases), but I'm curious how many other illnesses / disorders can produce compounds with visible effects.

Thank you for your posts on this thread -- I appreciate you knowledge-sharing on this!

Re: Show HN: Simple algorithm and color space to generate diverse skin tones

#67

Earlier quoted context omitted.

We used the approximation that the hypodermis was a perfectly white reflector; so the thickness wouldn’t matter. The collagen fibrills scatter light in such a way to create a yellower tint. So a person’s skin might appear this way in the absence of melanin and haemoglobin. I’m not an expert on population statistics, and so cannot give an opinion on specific skin types. Everything was based on ranges. There is a separ…

This brings up an interesting topic of atypical compounds that can visibly affect skin coloring -- whether temporary or more long-lived (such as elevated methemoglobin levels in the Blue Fugates of Kentucky). It's fascinating to learn that melanin and haemoglobin are the two primary factors (and cover the vast majority of cases), but I'm curious how many other illnesses / disorders can produce compounds with visible…

In theory, you can construct a skin model of any condition you want. It would be a case of knowing the concentration, scattering profiles and reflectance spectra of any chromophores. For the thesis, I wrote a Monte Carlo skin simulator using OpenCL, when it has just come out. You could plug anything in there.

Re: Show HN: Simple algorithm and color space to generate diverse skin tones

#69
post #7

Nice. Most of these colors look right to me, but I'm also seeing green, blue and purple? If you're curating colors from the space manually then it's not a problem. "Only realistic colors" would be a different problem. And I'm not sure if there's a way to solve that problem without excluding some real colors too. (Maybe if the colour selector was a different shape? I don't know much about color spaces.)

> blue

You'd be surprised: https://en.wikipedia.org/wiki/Argyria

Re: Show HN: Simple algorithm and color space to generate diverse skin tones

#70
The U and V axes seem roughly correspond to the tint/temperature (green-magenta/blue-amber) axes that you can find in a white balance tool in photo editors and also as an in-camera setting.

Nb. I'd advise against calling the PCA'd space XYZ because that's a well known standard color space: https://en.wikipedia.org/wiki/CIE_1931_color_space#CIE_XYZ_c...

Post reply on HN