Pink 0.9

asf.c File Reference

alternate sequential filter More...


Detailed Description

alternate sequential filter

Usage: asf in.pgm [rmin] rmax out.pgm

Description:

Alternate sequential filter for grayscale images (for binary images use preferably asfbin).

Disc-shaped structuring elements of increasing radius, ranging from 1 (or rmin if this parameter is specified) to rmax, are generated.

Let D1...Dn be these structuring elements, sorted by increasing radius.

Let I0 = in.pgm, the ith intermediate result Ii is obtained by the closing of the opening of Ii-1 by the structuring element Di.

The result out.pgm contains the final result In.

Giving a value 0 for the optional parameter rmin has the effect of beginning by a closing instead of an opening.

Types supported: byte 2d, byte 3d

Category: morpho

Author:
Michel Couprie