Pink 0.9

seuilauto.c File Reference

automatic threshold More...


Detailed Description

automatic threshold

Usage: seuilauto in.pgm L {min|max} [n] out.pgm

Description: Determine automatically a threshold thanks to the smoothed histogram of the picture (L : smoothing coefficient, 0<L<255). If n is given, it indicates the number of peaks on the histogram to be kept. If n isn't given, the threshold separates the picture in two approximatively equivalent groups of points. The argument <min|max> selects the part of the picture to be kept:

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

Category: arith

Author:
Cedric Allene 2003