DADiSP Worksheet Functions > Function Categories > Image Processing > MINFILT

 

MINFILT

Purpose:

Performs 2D minimum filtering on an image matrix.

Syntax:

MINFILT(image, ksize)

image

-

Any image table or expression evaluating to a table.

ksize

-

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

Returns:

An array the filtered image.

Example:

W1: density(ravel(readb("baboon.dat", ubyte), 128));gray

W2: minfilt(w1)

 

W1 reads and shapes a 128x256 raw binary image. W2 contains the 3x3 minimum filtered output.

Example:

W1: readimage(gethome + "data\mandrill.bmp")

W2: medfilt(w1, 5)

 

W1 reads a 250x240 bitmap image.  The result is a 24 bit RGB image. W2 contains the 5x5 minimum filtered output.

Remarks:

For 24 bit RGB images, MINFILT automatically performs filtering on each R, G, B component.

 

If the filter kernel is even, the size is incremented to make it odd.

See Also:

CONV2D

IMINTERP

MAXFILT

MEDFILT

NONLIN2D

SOBEL