hsv to rgb - convert image from hsv space to rgb space

Name

     hsv to rgb - convert image from hsv space to rgb space

Summary

	TYPE	filter
	INPUT
		field 4-vector float (2d image) HSVA image.
	OUTPUT
		field 4-vector float (2d image) same size, ARGB
			AVS style image.
	PARAMETERS
		none

Description

     hsv to rgb converts an image, represented as HSVA (A = alpha)
     to ARGB (A = alpha).

Example

     In this example, we read an AVS image (e.g., mandrill.x), convert
     to HSV space, extract the scalar V (luminoscity) and the vector
     HSA.  We attentuate the V component, then recombine back into HSVA
     space, and display the resulting image.  Result: "darker" image.
	READ IMAGE
	    |
	BYTE IMAGE TO FLOAT or FIELD TO FLOAT
            |
	RGB TO HSV
	    |------------------+--------------+---------------+
	EXTRACT SCALAR         |              |               |
	    | 	        EXTRACT SCALAR EXTRACT SCALAR  EXTRACT SCALAR
	    |                  +--------------+---------------+
	FIELD MATH ( attenuate V )	      |
            +------------------+--------------+
                               |
                       COMBINE SCALARS
                               |
                          HSV TO RGB
                               |
	                 FIELD TO BYTE or FLOATING IMAGE 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
	
HSV TO RGB(1)                22 January 1992                   HSV TO RGB(1)
AVS Module Version				Lawrence Berkeley Laboratory