Pink 0.9

asfbin.c File Reference

alternate sequential filter for binary images More...


Detailed Description

alternate sequential filter for binary images

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

Description: Alternate sequential filter for binary images.

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 F0 = in.pgm, the ith intermediate result Fi is obtained by the closing of the opening of Fi-1 by the structuring element Di. The result out.pgm contains the final result Fn. 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