Pink 0.9

erosion.c File Reference

morphological erosion by a plane structuring element More...


Detailed Description

morphological erosion by a plane structuring element

Usage: erosion in.pgm se.pgm out.pgm

Description: The (plane) structuring element is given by the non-null values in se.pgm, its origin (wrt the point (0,0) of se.pgm ) is given by a comment line in the file se.pgm.

Types supported: byte 2d, byte 3d, int32_t 2d, int32_t 3d, float 2d, float 3d

Category: morpho

Author:
Michel Couprie 2002

Example:

erosion cells ~/Pink/masks/carre5.pgm cells_eros

cells.gif
cells_eros.gif
cells cells_eros