>  Docs Center  >  Libraries  >  Salvaggio  >  MAKE_BAYER

MAKE_BAYER

MAKE_BAYER

Name


    MAKE_BAYER

Purpose


    This function will construct a document mode image from a provided
    three-band color image [3,*,*] using the following Bayer pattern
    [ [G,R], [B,G] ].

Category


    Image Processing.

Calling Sequence


    Result = MAKE_BAYER( image, [R=r], [G=g], [B=b],
                                [COMPOSITE=composite],
                                [FILEBASENAME=fileBasename] )

Inputs


    image
      The three-band color image array to be converted to
      document mode (the band dimension must be located in
      the first array dimension).

Keyword Parameters


    R
      This keyword will cause the red color component image to be
      assigned to the provided named variable.
    G
      This keyword will cause the green color component image to be
      assigned to the provided named variable.
    B
      This keyword will cause the blue color component image to be
      assigned to the provided named variable.
    COMPOSITE
      This keyword will cause the red, green, and blue color component
      images to be assembled into a sparsely populated composite image
      and assigned to the provided named variable (only the filtered
      color positions will be present in each color channel).
    FILEBASENAME
      A string containing the full path and base filename for the
      individual components, the composite, and the document mode image
      to be written to. If specified all five (5) files will be
      created with no regard for previously existing files with the
      same filenames.

Return Value


    An array containing the document mode image data.
   

Side Effects


    None

Modification History


    Written by: Carl Salvaggio
    February, 2010 Original code
   

Disclaimer


    This source code is provided "as is" and without warranties as to performance
    or merchantability. The author and/or distributors of this source code may
    have made statements about this source code. Any such statements do not
    constitute warranties and shall not be relied on by the user in deciding
    whether to use this source code.
    This source code is provided without any express or implied warranties
    whatsoever. Because of the diversity of conditions and hardware under which
    this source code may be used, no warranty of fitness for a particular purpose
    is offered. The user is advised to test the source code thoroughly before
    relying on it. The user must assume the entire risk of using the source code.



© 2019 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us