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

TWO2ONE

TWO2ONE

Name


      TWO2ONE

Purpose


      Convert from 2-d indices to 1-d indices.

Category


Calling Sequence


      two2one, ix, iy, arr, in

Inputs


      ix, iy = 2-d indices. in
      arr = array to use (for size only). in
        Alternatively, arr can be [nx, ny]
        where nx and ny are the image sizes
        in x and y (saves space).

Keyword Parameters


Outputs


      in = equivalent 1-d indices. out

Common Blocks


Notes


Modification History


      R. Sterner, 7 May, 1986.
      Johns Hopkins Applied Physics Lab.
      R. Sterner, 19 Nov, 1989 --- converted to SUN
      R. Sterner, 15 Feb, 1993 --- fixed a bug in the [nx,ny] case.
      R. Sterner, 2010 Jun 04 --- Converted arrays from () to [].
  Copyright (C) 1986, 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