>  Docs Center  >  Libraries  >  JHU/APL/S1R  >  IMG_MERGE_LAYERS






      Merge two images as layers with transparency.


Calling Sequence

      img3 = img_merge_layers(img1, img2, trans)


      img1 = Lower layer image. in
      img2 = Upper layer image. in
      trans = Transparency of upper layer. in
          This is a 2-D array the same size as the images
          giving the transparency for each point.
          Must be 0 to 1, 0 means lower layer not visible at all,
          1 means lower layer completely visible.

Keyword Parameters


Common Blocks


      Notes: img1 and img2 may be 2-D (B&W) or 3-D (color).
        If img1 is a 2-D byte array it is treated like a 3-D
        color image that is in shades of gray.

Modification History

      R. Sterner, 2012 Aug 17
  Copyright (C) 2012, Johns Hopkins University/Applied Physics Laboratory
  This software may be used, copied, or redistributed as long as it is not
  sold and this copyright notice is reproduced on each copy made. This
  routine is provided as is without any express or implied warranties
  whatsoever. Other limitations apply as described in the file disclaimer.txt.

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