SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

BotDetect - Real-Time Bot Detection API
 
 

MAN page from RedHat Other XITE-3.3-3.i386.rpm

THRESBERNSEN

Section: C Library Functions (3)
Updated: 16 Mar 1998
Index

 

NAME

thresBernsen - local treshold by the method of Bernsen.

 

SYNTAX


 #include <xite/threshold.h>


 int thresBernsen( IBAND inband, IBAND outband,
    int cmin, int dx, int dy, int lpv, int hpv,
    int low );

 

DESCRIPTION

If the difference between the largest and the smallestpixel value within the dx*dywindow is greater thanor equal to cmin(local contrast threshold), the averageof the two values is used as threshold. Pixels below thisthreshold are set to lpv,and pixels above are set to hpv.

If lowis TRUE, pixels in homogenous areas (differencebelow cmin)are assumed to be below the threshold and areset to lpv,and if lowis FALSE these pixels are setto hpv.

 

RESTRICTIONS

inbandand outbandmust have pixel type unsigned byte.

 

REFERENCE

Bernsen, J: "Dynamic thresholding of grey-level images"Proc. of the 8th ICPR, Paris, Oct 1986, 1251-1255.

 

RETURN VALUE


 0 => ok
 1 => bad pixel type inband
 2 => bad pixel type outband
 3 => bad cmin value
 4 => bad dx or dy value
 5 => bad lpv or hpv value
 6 => not enough memory

 

AUTHOR

Olav Borgli and Tor Lønnestad, BLAB, Ifi, UiO

 

ID

$Id: thresBernsen.c,v 1.22 1997/01/14 13:10:39 svein Exp $


 

Index

NAME
SYNTAX
DESCRIPTION
RESTRICTIONS
REFERENCE
RETURN VALUE
AUTHOR
ID

This document was created byman2html,using the manual pages.
 
ICM Bot detect detector