functions in hsv2rgb.i -
cmyk2rgb
|
rgb = cmyk2rgb([c, m, y, k]) or rgb = cmyk2rgb(c, m, y, k) Returns red-green-blue given cyan-magenta-yellow-black. The C, M, Y, K values must be between 0.0 and 1.0 inclusive. Return value has same dimensions as input (in first form). Output rgb are type char by default, with range [0,255]. You can specify a different maximum color value using the cmax= keyword. With cmax=1, return value will be type double, with range [0.,1.]; otherwise, the return value will be double if cmax is real, char if cmax is an integer <=255, otherwise long. | |
SEE ALSO: |
rgb2cmyk,
hsv2rgb,
rgb2hsv,
hsl2rgb,
rgb2hsl,
rgb2hsi |
hsl2rgb
|
rgb = hsl2rgb([h, s, l]) or rgb = hsl2rgb(h, s, l) Returns red-green-blue given hue-saturation-lightness. Return value has same dimensions as input (in first form). Output rgb are type char by default, with range [0,255]. You can specify a different maximum color value using the cmax= keyword. With cmax=1, return value will be type double, with range [0.,1.]; otherwise, the return value will be double if cmax is real, char if cmax is an integer <=255, otherwise long. Note that the HSV and HSL systems share a common definition of hue H, but that saturation S is a very different thing. | |
SEE ALSO: |
hsv2rgb,
rgb2hsl,
rgb2hsv,
rgb2cmyk,
cmyk2rgb, rgb2hsi |
hsv2rgb
|
rgb = hsv2rgb([h, s, v]) or rgb = hsv2rgb(h, s, v) Returns red-green-blue given hue-saturation-value. Return value has same dimensions as input (in first form). Output rgb are type char by default, with range [0,255]. You can specify a different maximum color value using the cmax= keyword. With cmax=1, return value will be type double, with range [0.,1.]; otherwise, the return value will be double if cmax is real, char if cmax is an integer <=255, otherwise long. Note that the HSV and HSL systems share a common definition of hue H, but that saturation S is a very different thing. | |
SEE ALSO: |
hsl2rgb,
rgb2hsv,
rgb2hsl,
rgb2cmyk,
cmyk2rgb, rgb2hsi |
rgb2cmyk
|
cmyk = rgb2cmyk([r, g, b]) or cmyk = rgb2cmyk(r, g, b) Returns cyan-magenta-yellow-black given red-green-blue. The returned [c, m, y, k] are normalized to lie in [0., 1.]. Return value has same dimensions as input (in first form). If input rgb are real, they are assumed normalized to lie in [0.,1.]. If input are integers, they are assumed to lie in [0,255]. You can specify a different maximum color value using the cmax= keyword. In this simple conversion scheme, the complement of the largest component of [r,g,b] will always be 0.0. This is the choice with the largest possible k component. | |
SEE ALSO: |
cmyk2rgb,
rgb2hsv,
hsv2rgb,
rgb2hsl,
hsl2rgb,
rgb2hsi |
rgb2hsl
|
hsl = rgb2hsl([r, g, b]) or hsl = rgb2hsl(r, g, b) Returns hue-saturation-lightness given red-green-blue. Return value has same dimensions as input (in first form). If input rgb are real, they are assumed normalized to lie in [0.,1.]. If input are integers, they are assumed to lie in [0,255]. You can specify a different maximum color value using the cmax= keyword. Note that the HSV and HSL systems share a common definition of hue H, but that saturation S is a very different thing. | |
SEE ALSO: |
rgb2hsv,
hsv2rgb,
hsl2rgb,
rgb2cmyk,
cmyk2rgb, rgb2hsi |
rgb2hsv
|
hsv = rgb2hsv([r, g, b]) or hsv = rgb2hsv(r, g, b) Returns hue-saturation-value given red-green-blue. Return value has same dimensions as input (in first form). If input rgb are real, they are assumed normalized to lie in [0.,1.]. If input are integers, they are assumed to lie in [0,255]. You can specify a different maximum color value using the cmax= keyword. Note that the HSV and HSL systems share a common definition of hue H, but that saturation S is a very different thing. | |
SEE ALSO: |
rgb2hsl,
hsv2rgb,
hsl2rgb,
rgb2cmyk,
cmyk2rgb, rgb2hsi |