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