4 ms·
There is an improvement that can be made here. There is no attempt to find the brightest colour. If you look at the dark image, the brightest colours (red) stan
by bootload 11y ago
There is an improvement that can be made here. There is no attempt to find the brightest colour. If you look at the dark image, the brightest colours (red) stand out over and above the dark colours. Using this knowledge is an illustration technique. Notice how the red stands out on one image, a small blue line on the other?
This particular algorythm and others that I've seen don't take this into account. Depending on the image, you could also take into account the lightness and darkness to find the dominant colour however small amounts in the image.
- minikomi 11y agoHmm. I wonder if converting to HSV first would change the results.
- bootload 11y agodoes HSV capture colour brightness contrast? I imagine finding the brightest and darkest by looking at the grey scales.
- morpher 11y agoYes. The V in HSV is a greyscale value.
- deleted 11y ago[deleted]
- jacobolus 11y agoHSV is a terrible color model for any human purpose. (To be honest, for any purpose whatsoever, unless it’s required for backwards-compatibility with legacy systems.) HSV, like the RGB model it is a trivial derivative of, has dimensions which are not closely correlated with any color attributes relevant to human perception. Instead, use a model such as CIECAM02, IPT, CIELAB (from the 70s but not too bad), or Munsell (basically a big lookup table, from experiments done in the 40s).
- wingerlang 11y agoI take it HSV is HSB (redirected me on wiki). What's bad with that one? I find that using this one in color pickers is the only one that lets me find the correct tones.
- rspeer 11y agoThe main problems with HSV (HSB): - It thinks #00ff00 (full-intensity green) and #0000ff (full-intensity blue) are the same brightness, when the green will be much, much brighter than the blue to human eyes - A large portion of the hue space is dedicated to nearly-indistinguishable green
- wingerlang 11y agoI see. But as a user that just needs to visually pick colors, I think it is the best one I can use.
- ThomPete 11y agoI am not sure what you are getting at here. The models you propose are not what most if any designers use as the purpose is not to manually select best color combinations (there are other ways to do that) but to approach colors a little more structurally. Whether you calibrate your perception to understand one model or the other doesn't seem to be relevant. I am glad to be taught something I didn't know, but for now it sounds more like a theoretical claim than an actual useful one.
- zschuessler 11y agoConverting to LAB would give you access to the Delta E formulas. I wrote an introduction to dE here, if you're curious: http://zschuessler.github.io/DeltaE/learn/ http://zschuessler.github.io/DeltaE/learn/ Check out the demo page as well, if you're on desktop: http://zschuessler.github.io/DeltaE/demos/de76-chroma-key/ http://zschuessler.github.io/DeltaE/demos/de76-chroma-key/ The repo is public domain. Hack around with the library if you'd like!
- bootload 11y agothankyou @zschuessler, reading thru this now, long time since I've read on colour theory. See what I can lean and play with.