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

LS2

LS2

Name


      LS2

Purpose


      Scale image between percentiles 1 and 99 (or specified percentiles).

Category


Calling Sequence


      out = ls2(in, [l, u, alo, ahi])

Inputs


      in = input image. in
        Byte, Int, and Uint scale to full data type range.
        by default. Other data types scale to 0 to 255
        by default. However, a floating result is returned.
      l = lower percentile to ignore (def = 1). in
      u = upper percentile to ignore (def = 1). in

Keyword Parameters


Keywords


        MIN=mnout Output image min value.
        MAX=mxout Output image max value.
          Default min and max are full datatype range.
        SCALE_ON=arr Array to determine scaling on. If not
          given then input image in is used. As a special case
          may give a 2 element array: [lo,hi] to scale to min, max.
        /QUIET Inhibit scaling message.
        /NOSCALE Do not actually scale the data (returns 0).
      MISSING=miss Values to ignore for processing. Restore
        when done. Note: MISSING applies to the input image
        array, not the SCALE_ON array if given.
      WMISS=wmiss 1-d indices into each color component
        where data missing (-1 if no missing data).
      WGOOD=wgood 1-d indices into each color component
        where data is good.
        NBINS=nbins Number of histogram bins to use (def=600).

Outputs


      alo = value scaled to min out
      ahi = value scaled to max out
      out = scaled image. out

Common Blocks


Notes


      Notes: Uses cumulative histogram.

Modification History


      R. Sterner, 2002 Jun 21
  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