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

IMG_ROT

IMG_ROT

Name


      IMG_ROT

Purpose


      Rotate a 2-D or 3-D image array by any angle.

Category


Calling Sequence


      out = img_rot(in,ang,mag,x0,y0)

Inputs


      in = Input image. in
      ang = rotation angle (deg) in
      mag = Mag factor (def=1.0) in
      x0,y0 = x,y subscript to rotate about. in
        Same as for IDL rot.

Keyword Parameters


Keywords


        Same keywords as the IDL rot routine.
        ERROR=err error flag: 0=ok, 1=not 2-D or 3-D,
          2=wrong number of color channels for 3-D array.

Outputs


      out = Rotated image. out

Common Blocks


Notes


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

Modification History


      R. Sterner, 2002 Jun 03
      R. Sterner, 2010 May 12 --- Converted arrays from () to [].
  Copyright (C) 2002, 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.



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
   Contact Us