rgbtogray - convert an rgb image into gray scale

Name

     rgbtogray - convert an rgb image into gray scale 

Summary

     Name	   rgbtogray

Type

  mapper

Inputs

   field 4-vector byte

Outputs

   field scalar byte

Parameters

   

Description

    The rgbtogray module will receive an AVS image as input, 
    then compute an output field which is a gray scale version
    of the rgb components of the input image.
INPUTS
        Data Field (required; field 4-vector byte)
OUTPUTS
	Field scalar byte

Example

NETWORK
	READ IMAGE  
             |
         RGBTOGRAY
             |
        ------------
        |  |   |   |
       COMBINE SCALARS
             |
       DISPLAY IMAGE

Author

	Wes Bethel, Lawrence Berkeley Laboratory
AVS Modules						              rgbtogray
Lawrence Berkeley Laboratory