Convert a HSV image to the equivalent RGB image.
RGB = hsv2rgb(HSV)
HSV
should be M x N x 3
,
the type should be double and the element value range should be [0,1].HSV
and type of double.hsv2rgb
convert a HSV image to the equivalent RGB image.
The relationship between RGB and HSV described as follows:
V = max(R,G,B)
S = (V-min(R,G,B))/V
if V<>0, 0 otherwiseH =
(G - B)/6/S
, if V=R;1/2+(B - R)/6/S
, if V=G;2/3+(R - G)/6/S
, if V=B.Supported classe: DOUBLE.
http://sivp.sf.net