Pink 0.9

dist.c File Reference

distance transform (external) More...


Detailed Description

distance transform (external)

Usage: dist in.pgm mode out.pgm

Description: Distance to the object X defined by the binary image in.pgm . The result function DX(x) is defined by: DX(x) = min {d(x,y), y in X}.

The distance d used depends on the parameter mode:

The output out.pgm is of type int32_t for modes < 40, of type byte for other modes.

Types supported: byte 2d, byte 3d

Category: morpho

Author:
Michel Couprie, Xavier Daragon