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

IMG_ICE

IMG_ICE

Name


      IMG_ICE

Purpose


      Color image interactive contrast enhancement.

Category


Calling Sequence


      img_ice, img

Inputs


      img = Image to scale. Need not be 8 bit. in
          Allowed data types: Byte, Int, Uint.
          8-bit images are 2-D, full color images are
          3-D, interleaved in dimension 1, 2, or 3 as
          usual even if they are INT or UINT data type.

Keyword Parameters


Keywords


        SCALE=sc Returned image scaling structure.
          Structure: {rx:rx,ry:ry,gx:gx,gy:gy,bx:bx,by:by}
          These values are from -1 to 1.
          x is related to brightness, y to contrast.
          For CANCEL sc.rx is returned as -999, so check
          after calling img_ice before using sc.
          Scale image using img_ce,img,sc,out=img2
        /LOCK Start with all channels locked together for scaling.
        /RESTORE Add Save/Restore state buttons useful
          for saving/restoring intermediate results.
        /LAST save last scaling on exit. Will be available
          under Restore button on future calls to img_ice.
          Creates img_ice_last_scaling.txt in local directory:
        LABELS=lab Optional text array of short channel labels.
        ERROR=err Error flag: 0=ok.

Outputs


Common Blocks


Notes


      Note: Image is not actually scaled, the scaling is
        determined but not applied. Use img_ce to apply
        scaling: img_ce,img,sc,out=img2

Modification History


      R. Sterner, 2002 Jun 06
      R. Sterner, 2002 Jun 18 --- Added default save name, marker x,y list.
      R. Sterner, 2002 Jun 18 --- Fixed problem with not deleting window.
      R. Sterner, 2002 Jun 24 --- Added Save/Restore options.
      R. Sterner, 2003 Sep 23 --- Added error flag.
      R. Sterner, 2007 Apr 27 --- Added channel lock to scale together.
      R. Sterner, 2010 May 12 --- Converted arrays from () to [].
  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.



© 2019 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us