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

IMG_ADJHSV

IMG_ADJHSV

Name


      IMG_ADJHSV

Purpose


      Adjust Hue, Saturation, and Value for a 3-D image array.

Category


Calling Sequence


      out = img_adjhsv(in)

Inputs


      in = Input image. in

Keyword Parameters


Keywords


        HUE=off Offset to add to Hue, which is in degrees, 0-360.
        SAT=fct Factor to apply to Saturation (clipped to 0-1).
        VAL=fct Factor to apply to Value (clipped to 0-1).
          Defaults are no change.
        ERROR=err error flag: 0=ok, 1=not 3-D,
          2=wrong number of color channels for 3-D array.

Outputs


      out = Stretched image. out

Common Blocks


Notes


      Notes: For 3-D images only.
        Returned image is same type is input image.
        Example: Increase saturation and brighten:
        tv,img_adjhsv(img,hue=0,sat=1.5,val=1.5),tr=3

Modification History


      R. Sterner, 2001 Jan 08
      R. Sterner, 2010 May 12 --- Converted arrays from () to [].
      R. Sterner, 2011 Aug 08 --- Fixed size[] to size().
  Copyright (C) 2001, 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