IMG_CLRW Name
IMG_CLRW Purpose
Set specified pixels to a given color in a 24-bit image.
Category
Calling Sequence
img2 = img_clrw(img1,w) Inputs
img1 = Original image. in
w = Array of 1-d indices to modify. in
Keyword Parameters
Keywords
COLOR=clr Replacement color.
May also be a 3 element array: [R,G,B].
ERROR=err Error flag: 0=ok.
Outputs
img2 = Modified image. out
Common Blocks
Notes
Modification History
R. Sterner, 2001 Sep 26
R. Sterner, 2002 Jun 18 --- Fixed to work for bw.
R. Sterner, 2002 Jun 25 --- Allowed 24-bit color value.
R. Sterner, 2002 Jul 11 --- Made COLOR keyword more standard.
R. Sterner, 2010 May 12 --- Converted arrays from () to [].
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.