DADiSP Worksheet Functions > Function Categories > Image Processing > NONLIN2D
Performs nonlinear 2D filtering with a kernel of size KSIZE on a square image matrix.
NONLIN2D(image, type, ksize)
image |
- |
An image or table |
||||||
wintype |
- |
An integer. The image filter type:
|
||||||
ksize |
- |
Optional. An integer. Kernel size, must be odd. Defaults to 3. |
A table.
W1: readb("baboon.dat", UBYTE)
W2: ravel(W1, 128); setmatrix(1); setplottype(3)
W3: nonlin2d(W2, 0, 3); setmatrix(1); setplottype(3)
filters the baboon image with a 3x3 median filter kernel.
NONLIN2D processes an image with a colormap.
See MAXFILT, MEDFILT, and MINFILT to perform maximum, median and minimum filtering on images with a colormap and 24 bit RGB images.