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

IMGSCALE

IMGSCALE

Name


      IMGSCALE

Purpose


      Interactive image scaling.

Category


Calling Sequence


      imgscale, in, out

Inputs


Keyword Parameters


Keywords


        /SATURATE Means display saturation colors as warning.
        EXIT_CODE=code Exit code: 0=ok, 1=cancel.

Outputs


      in=[inlo,inhi] Input image low and high values. out
      out=[outlo,outhi] Output image low and high values. out

Common Blocks


Notes


      Notes: in and out define the requested grayscale mapping.
        The input image value inlo maps to the output image value
        outlo, and inhi maps to outhi. All values are in the
        range 0 to 1 and are image value (as in hue,sat,val).
        The routine imgscale is used to select the desired
        scaling, it does not actually do it. To scale do:
            new = scalearray(old,in(0),in(1),out(0),out(1))>0<1
        Where new and old are the image values. For BW images
        just multiply imgscale results by 255 first:
        in=in*255 & out=out*255
            new = scalearray(old,in(0),in(1),out(0),out(1))>0<255

Modification History


      R. Sterner, 1995 Dec 3
      R. Sterner, 1998 Jan 15 --- Dropped use of !d.n_colors.
      R. Sterner, 1999 Aug 10 --- Fixed the problem of locked windows.
  Copyright (C) 1995, 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