rgb to hsv - convert image from rgb space to hsv space
Name
rgb to hsv - convert image from rgb space to hsv space
Summary
TYPE filter
INPUT
field 4-vector float (2d image)
avs-style ARGB image.
OUTPUT
field 4-vector float (2d image) same size
as input
PARAMETERS
none
Description
rgb to hsv converts an image, represented as ARGB (A = alpha)
to HSVA (A = alpha).
The H component ranges from 0.0 to 1.0.
Example
We read an ARGB image (e.g., "mandrill.x"), convert to HSV space,
and display the V or luminoscity component (grayscale).
READ IMAGE
|
BYTE IMAGE TO FLOAT or FIELD TO FLOAT
|
RGB TO HSV
|
EXTRACT SCALAR (choose "value" component to display luminoscity)
|
FIELD TO BYTE
|
COLORIZER
|
DISPLAY IMAGE
Author
Wes Bethel Lawrence Berkeley Lab, 22 Jan 1992
Related modules
floating image to byte, byte image to float
RGB TO HSV(1) 22 January 1992 RGB TO HSV(1)
AVS Module Version Lawrence Berkeley Laboratory