3 ms·
I was going to comment snarkily: "Really? Every coder? What if you program toasters?" Then it immediately occurred to me that a toaster has some binary enumera
by kazinator 10y ago
I was going to comment snarkily: "Really? Every coder? What if you program toasters?"
Then it immediately occurred to me that a toaster has some binary enumeration of the blackness level of the toast, like from 0 to 15, and this corresponds to a non-linear way to the actual darkness: i.e. yep, you have to know something about gamma.
- johnnovak 10y agoAs arguably vision is the most important sensory channel in human-computer interaction, I'd say it doesn't hurt for all coders to have at least a vague understanding of gamma. I think it should be part of the "basic education". Of course, it's just my opinion :)
- mrob 10y agoBread darkening accelerates with time under heating as the water levels reduce, so human vision isn't the only non-linearity here. For an ordinary consumer product I'd just test various breads to find the average time needed for light/medium/heavy toast, and linearly interpolate between those if I needed finer granularity, no gamma correction required. Hardly anybody knows about objective standards for toastedness, and they can always turn it up or down next time. Only if it's a fancy commercial toaster with optical feedback then gamma correction could matter.
- kazinator 10y agoThe whole combined nonlinearity could be one "toaster gamma" function, mapping from cooking time values to darkness level.
- kefka 10y agoSpeaking of non-traditional applications of Gamma... In the 3d printing world, we have a filament of PLA (corn based plastic) with wood dust mixed in the plastic, of around 20%. This gives a filament that feels, machines, and colors like wood. And if you extrude at varying temps, you can give the part lighter or darker colors (darkness dependant on higher temp). I can almost guarantee that there's no gamma correction, let alone darkness calculation, being done for filaments like that. And it would follow an inverse power distribution - the more heat, the higher the power and the lower the final energy result (burnt = lower potential energy in wood). So yeah, even if you don't do graphics, it still applies. Damn...