IMG_SMOOTHC Name
IMG_SMOOTHC Purpose
Convolution smooth a 2-D or 3-D image array.
Category
Calling Sequence
out = img_smoothc(in,sm) Inputs
in = Input image. in
sm = smoothing value (def=none) in
1.0 is strong, 0.1 is mild smoothing for default width.
Keyword Parameters
Keywords
WIDTH=w Width of convolution smoothing kernel (def=5).
Make sure w is odd to avoid shifting the image.
/ZERO means zero edge effect pixels instead of assuming
repeated pixels at image edge.
ERROR=err error flag: 0=ok, 1=not 2-D or 3-D,
2=wrong number of color channels for 3-D array.
Outputs
out = Smoothed image. out
Common Blocks
Notes
Note: deals with 2-D or 3-D image arrays and smooths
correct image planes. Output data type is same as input.
Uses convolution smoothing with a gaussian kernel.
Wider kernels give more edge effect.
Modification History
R. Sterner, 2001 Jan 05
R. Sterner, 2001 Jun 04 --- changed name to img_smoothc.
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.