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

EXTREMES_2D

EXTREMES_2D

Name


      EXTREMES_2D

Purpose


      Find local extremes in a 2-d array.

Category


Calling Sequence


      ind = extremes_2d(z, flag)

Inputs


      z = 2-d array to search. in
      flag = min/max flag: -1 for min, 1 for max. in

Keyword Parameters


Keywords


        /EDGES Means examine image edges (default ignores edges).
        AVOID=n_edge Number of pixels to ignore at edges (def=1).
        VALUE=v Returned values at each extreme.

Outputs


      ind = 1-d indices of local extremes (-1 if none). out

Common Blocks


Notes


      Notes: Mimima are sorted in ascending order of value.
              Maxima are sorted in descending order of value.
        2-d indices may be found from: one2two,ind,z,ix,iy.
        Noisy images should be smoothed first.

Modification History


      R. Sterner, 23 Dec, 1993
      R. Sterner, 2007 Dec 14 --- Added AVOID keyword.
      R. Sterner, 2010 Jun 09 --- Converted arrays from () to [].
  Copyright (C) 1993, 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