IMG_SHAPE Name
IMG_SHAPE Purpose
Returns the shape of a 2-D or 3-D image array.
Category
Calling Sequence
img_shape, img Inputs
img = Input image. in
Keyword Parameters
Keywords
TRUE=tr Interleave dimension for true color:
0 = 2-D image, else dimension (1, 2, or 3).
Use to display image: tv,img,true=tr
NX=nx, NY=ny returned image size in x and y.
ERROR=err error flag: 0=ok, 1=not 2-D or 3-D,
2=wrong number of color channels for 3-D array.
/QUIET do not display an error message.
Outputs
Common Blocks
Notes
Note: deals with 2-D or 3-D image arrays.
Modification History
R. Sterner, 2001 Mar 26
R. Sterner, 2007 Mar 01 --- Added /QUIET keyword.
R. Sterner, 2010 May 04 --- Converted arrays from () to [].
R. Sterner, 2010 Sep 06 --- Now allows 1-d arrays.
R. Sterner, 2011 May 12 --- Allowed for Alpha channel.
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.