NONLIN2D

Purpose:

Performs nonlinear 2D filtering with a kernel of size KSIZE on a square image matrix.

Syntax:

NONLIN2D(image, type, ksize)

image

-

An image or table

wintype

-

An integer. The image filter type:

0:

Median filter

1:

Minimum filter

2:

Maximum filter

ksize

-

Optional. An integer. Kernel size, must be odd. Defaults to 3.

Returns:

A table.

Example:

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.

Remarks:

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.

See Also:

CONV2D

IMINTERP

MAXFILT

MEDFILT

MINFILT

SOBEL