MAN page from RedHat Other XITE-3.3-3.i386.rpm
THRESMLCENTROID
Section: C Library Functions (3)
Updated: 16 Mar 1998
Index
NAME
thresMlCentroid - multi level thresholding by local centroid method
SYNTAX
#include <
xite/thresMl.h>
int thresMlCentroid( histogram histo,
histogram thres, int m, int method,
int* nt );
DESCRIPTION
Finds multi level thresholds.Iteratively, histogram mass is moved to local centroid.The centroid is the MEAN inside a histogram window if
method=0, the MEDIAN inside the window if
method=1.The size of the histogram window is (2*
m)+1. This procedureis repeated until no changes, or at most 100 iterations.The mapping from old to new histogram is analyzed,corresponding thresholds are calculated, and returned.
histois the input band histogram, thresis the outputhistogram to receive thresholds. ntwill return the numberof thresholds.
If m=0, the above process is repeated in a loop over them-values 5, 10, 15, 20, 25, 30, 35, 40, 45 and 50, exitingif two consecutive runs give the same thresholding result.
At return, threscan be indexed on 0..nt-1.
RESTRICTIONS
Histogram is defined on 0..255.
SEE ALSO
thresMl(1),
thresMlAppScale(3),
thresMlAppMean(3),
thresMlAppMedian(3),
thresMlApply(3),
histoCentroid(3),
thresMlCentroid(1),
mkComCur(3),
thresMlComCur(3),
thresMlComCur(1),
thresMlReddi(3),
thresMlReddi(1),
thresMlWaHa(3),
thresMlWaHa(1)
RETURN VALUE
0 => ok
2 => Bad m value
3 => Bad method value
REFERENCE
- R. Wilson
- "A Class of local centroid algorithms forclassification and quantization in spaces of arbitrarydimension"Linkoping Univ, Internal Report LiTH-ISY-I-0610(1983).
AUTHOR
Tor Lønnestad, BLAB, Ifi, UiO
ID
$Id: thresMlCentroid.c,v 1.25 1997/01/14 13:06:21 svein Exp $
Index
- NAME
- SYNTAX
- DESCRIPTION
- RESTRICTIONS
- SEE ALSO
- RETURN VALUE
- REFERENCE
- AUTHOR
- ID
This document was created byman2html,using the manual pages.