SMOOTH Function

Smooths an array with a boxcar average of a specified width.

Usage

Input Parameters


NOTE: Use the Intleave keyword to specify interleaving for 2D and 3D arrays.

Returned Value

Keywords

Discussion


NOTE: Rather than explicitly summing over the entire window each time the window is moved, the sum over each new window is computed as the sum over the old window plus the sum over the leading edge of the new window minus the sum over the trailing edge of the old window. This method is computationally efficient, but due to numerical roundoff it may give slightly different results than the explicit method. Double precision input virtually eliminates these differences.

Sample Usage

Example

Here is what a mandrill image looks like before and after applying the SMOOTH function. For this example, a value of 7 was used for the width parameter.

Figure 2-117 The SMOOTH function has been used to soften the sharp contrasts in this 512-by-512 mandrill image.

Figure 2-118 The SMOOTH function has been used to soften the sharp contrasts in this 512-by-512 mandrill image.

See Also





doc@boulder.vni.com
Copyright © 1999, Visual Numerics, Inc. All rights reserved.