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

IMG_MARGIN

IMG_MARGIN

Name


      IMG_MARGIN

Purpose


      Add a margin to an image.

Category


Calling Sequence


      out = img_margin(in, m, [ix1,ix2,iy1,iy2])

Inputs


      in = Input image. May be 8 or 24 bit. in
      m = Size of margin to add. May be [mx,my]. in

Keyword Parameters


Outputs


      ix1,ix2,iy1,iy2 = Returned indices to pick out
        off original area:
          in = out[ix1:ix2,iy1:iy2] ; For 8-bit.
      out = Returned image with added margin. out

Common Blocks


Notes


      Notes: The image itself is used to add the margins in a
        way to avoid discontinuities.

Modification History


      R. Sterner, 2009 Jul 09
      R. Sterner, 2010 Oct 19 --- Added COLOR keyword.
  Copyright (C) 2009, 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.



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