hsv2rgb

From DavinciWiki
Jump to: navigation, search


Description

Convert a 3-plane HSV image into RGB

Arguments and Return Values

Arguments: A 3 band float HSV array and a maximum value

Return Value: A float RGB array

Usage

Syntax: hsv2rgb(object = VAL, maxval = VAL)

The hsv2rgb() function converts a 3-band HSV image into a 3-band RGB image.

If maxval is specified, it is taken to be the maximum intensity value, and the output RGB values are scaled to lie between 0 and maxval. If no value is specified for maxval, it defaults to 1.

The return value of hsv2rgb() has a type of FLOAT, so it must either be stretched (e.g. stretch()) or format converted (e.g. byte()) for viewing.

Examples

dv> a
400x300x3 array of byte, bip format [360,000 bytes]

dv> b=hsv2rgb(a)
400x300x3 array of float, bip format [1,440,000 bytes]

Images

rgb2hsv.png rgb.png

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Related Functions

Recent Core Changes

Modified On: 09-22-2010

Personal tools