If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Threaded View

Implementing an algorithm, math error.

Hi, im making a program that can convert RGB to HSI. Hue, Saturation and Intensity.
HSI is abit more complex than HSV and HSB.
Im using OpenCV for doing it. But i however cant used the premade funcs in opencv.

Im loading my input image into a matrix, and im dragging out the rgb-info i want.
Done in a loop for x,y.

i have succesfully made the conversion of S and I, but im stuggling alot with H.