IMG_REPCLR Name
IMG_REPCLR Purpose
Replace a color in a 24-bit image.
Category
Calling Sequence
img2 = img_repclr(img1) Inputs
img1 = Original image. in
Keyword Parameters
Keywords
CLR1=clr1 [r1,g1,b1] RGB values (0-255) of target color.
CLR2=clr2 [r2,g2,b2] RGB values replacement color.
TOL=tol Tolerance, Euclidian distance in RGB space. Def=0.
COUNT=c Number of pixels changed.
ERROR=err Error flag: 0=ok.
Outputs
img2 = Modified image. out Common Blocks
Notes
Modification History
R. Sterner, 2001 Sep 24
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.