rgb2hsv

From DavinciWiki

Jump to: navigation, search


Description

Convert a 3-plane RGB image into HSV

Arguments and Return Values

Arguments: A 3 band numeric array used as an RGB image

Return Value: A 3 band numeric array used as an HSV image

Usage

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

The rgb2hsv() function converts a 3-band RGB image into a 3-band HSV image. If maxval is specified, it is taken to be the maximum intensity value. If no value is specified for maxval, its value is determined from the input type.

HSV values range from 0.0 to 1.0, so the return value has a type of FLOAT.

Examples

dv> rgb_pic1 = rgb
400x300x3 array of byte, bip format [360,000 bytes]

dv> hsv_pic1 = rgb2hsv(rgb_pic1)
400x300x3 array of float, bip format [1,440,000 bytes]

Images

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

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

All other topics

  • See navigation on the left

Related Functions

Modified On: 03-29-2006