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(gethome+"\data\baboon.dat", UBYTE)
W2: ravel(W1, 128); setmatrix(1); setplottype(3)
W3: nonlin2d(W2, 0, 3); setmatrix(1); setplottype(3)

W1 contains a series of 32768 unsigned bytes.
W2 ravels the series into a 128x256 array displayed as a density (image) plot.
W4 filters the image in W2 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.