Pink 0.9

distc.c File Reference

distance transform (internal) More...


Detailed Description

distance transform (internal)

Usage: distc in.pgm mode out.pgm

Description: Distance to the complementary of 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 not 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