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






      Radially distort a 2-D or 3-D image array.


Calling Sequence

      out = img_radial(in)


      in = Input image. in

Keyword Parameters


        COEFF=coeff Array of 4 coefficients.
          [a,b,c,d] where d scales image by 1/d,
          a,b,c distort image.
        Can use RED=red, GRN=grn, BLU=blu to set different
          corrections for each color. If coeffecients not given
          then that color is not changed. Use COEFF if same
          for all 3 colors.
        XOPT=x, YOPT=y image pixel of optical axis (else centered).
        ERROR=err error flag: 0=ok, 1=not 2-D or 3-D,
          2=wrong number of color channels for 3-D array.
        /TEST test mode. Returns needed radial values along
          source image x axis only. Input image must be a 1-d
          array of normalized x values (0 to 1, or -1 to 1).
          XOPT may be given (normalized, def=0). Plot returned
          result to see the effects of a,b,c, and d values.


      out = Resized image. out

Common Blocks



      Note: deals with 2-D or 3-D image arrays and distorts
        correct image planes.
        Based on algorithm given in:

Modification History

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