0

I've been running a hue difference algorithm on some images. Hue difference generally means difference in color, and only color, regardless of contrast:

hue difference

But, I've noticed a nasty effect with some images:

enter image description here

As you can see, cyan and yellow appeared out of nowhere. To be totally sure, I have run a test where the hue in the image was set to 1 and lightness to 0.5:

enter image description here

The broken colors really seem to be near black/white pixels on almost every image. I use this rgb/hsl algorighm.

During every operation on images before, colorless pixels (lightness = 1 or 0 OR saturation = 0) were treated differently (their undefined color did not affect the calculation).

My questions about the problem:

  1. Are the colors real, or is it a bug in RGB/HSL
  2. Either way, is it possible to filtrate them out?
Community
  • 1
  • 1
  • Just curious, would you be able to run this in Python `colorsys.hls_to_rgb(h, l, s)` and share the output? That could at least narrow down to if it's the algorithm vs to be expected – Parker Oct 22 '14 at 22:23
  • I'm sorry, but I don't know how to use Python at all. Could you elaborate a little on what should I do? – Tomáš Zato - Reinstate Monica Oct 22 '14 at 22:27
  • Oh, nevermind then. Just curious if you had access to another RGB//HSL converter, so compare outputs – Parker Oct 22 '14 at 22:29

0 Answers0