Fixed the RGB2HSV formula (ticket #868)

This commit is contained in:
Ilya Lysenkov 2011-06-07 12:22:07 +00:00
parent 9e21f06404
commit 07e2deccb9

View File

@ -202,7 +202,7 @@ The function can do the following transformations:
.. math:: .. math::
H \leftarrow \forkthree{{60(G - B)}/{S}}{if $V=R$}{{120+60(B - R)}/{S}}{if $V=G$}{{240+60(R - G)}/{S}}{if $V=B$} H \leftarrow \forkthree{{60(G - B)}/{(V-min(R,G,B))}}{if $V=R$}{{120+60(B - R)}/{(V-min(R,G,B))}}{if $V=G$}{{240+60(R - G)}/{(V-min(R,G,B))}}{if $V=B$}
If If
:math:`H<0` then :math:`H<0` then