-1

I want to calculate the histogram for an image in C# using the Hue, Saturation, Luminance values not the traditional RGB values.

Is there any way to achieve that or not?

Best regards.

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
  • 2
    Where is the problem? Loop the pixels in your image and build a dictionary with every colur-value-triple (no matter if it is HSL, RGB, CMYK or whatever you imagiine) and the ocunt of pixels with that colour. – MakePeaceGreatAgain Jan 28 '16 at 07:54

1 Answers1

0

Convert your image to HSL color space (see, for example, RGB value to HSL converter) and then build the histogram the same way you would do it for an RGB image.

Community
  • 1
  • 1
Haukinger
  • 10,420
  • 2
  • 15
  • 28