Hue, saturation, luminance values of a pixel

Hi there!

i was wandering if there is any possibility to get the h,s,l values instead of r,g,b of a pixel
using the openmv cam.

Then i want to get the mean value of hue of all the pixels present on the image.

Hi, we give you the LAB value. Just convert that to HSL.

“Just convert that to HSL”

It seems so easy as you said but i cant find a way to do this.

At first i thought that with a simple mathematical way i could accomplish this but i didn’t find such.

Please tell me do i need to use an external device to translate the values or i can translate it inside the openmv?

Hi, you want to google how to convert LAB to RGB and then RBGB to HSL.