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

IMG_RESIZE

IMG_RESIZE

Name


      IMG_RESIZE

Purpose


      Resize a 2-D or 3-D image array.

Category


Calling Sequence


      out = img_resize(in)

Inputs


      in = Input image. in

Keyword Parameters


Keywords


        MAG=mag Mag factor (def=1). mag may be [magx,magy].
        SMAG=smag Like MAG but smooth image first if smag<1.
        IMGMAX=max Instead of MAG may give new length of max side.
        ERROR=err error flag: 0=ok, 1=not 2-D or 3-D,
          2=wrong number of color channels for 3-D array.
        /REBIN use rebin to resize, else congrid. Mag factor
          must be exact multiple or submultiple for /REBIN.
        May also use the keywords allowed by CONGRID or REBIN.

Outputs


      out = Resized image. out

Common Blocks


Notes


      Note: deals with 2-D or 3-D image arrays and resizes
        correct image planes.

Modification History


      R. Sterner, 2000 Sep 21
      R. Sterner, 2001 Jan 29 --- Allowed x and y mag.
      R. Sterner, 2001 Jul 03 --- Added IMGMAX keyword.
      R. Sterner, 2002 Jul 10 --- Simplified. Added /REBIN.
      R. Sterner, 2007 Mar 19 --- Added SMAG=smag.
      R. Sterner, 2010 May 07 --- Converted arrays from () to [].
      R. Sterner, 2010 Sep 08 --- Now allows 1-D arrays (B&W or Color).
  Copyright (C) 2000, 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