SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

BotDetect - Real-Time Bot Detection API
 
 

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

THRESMLAPPLY

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

 

NAME

thresMlApply, thresMlAppScale, thresMlAppMean,thresMlAppMedian - routines that applies ml-thresholds.

 

SYNTAX


 #include <xite/thresMl.h>


 int thresMlAppScale( IBAND inband,
    IBAND outband, int* thresholds, int nt,
    double scale );


 int thresMlAppMean( IBAND inband,
    IBAND outband, int* thresholds, int nt,
    histogram histo );


 int thresMlAppMedian( IBAND inband,
    IBAND outband, int* thresholds, int nt,
    histogram histo );

 

DESCRIPTION

The thresMlApplyroutines apply a vector of thresholds(Multi-Level threshold) to a band inbandgiving outband.inbandand outbandmay be identical.

thresMlAppScalegives all pixels below the first thresholdvalue 0, all pixels between the first and the second: scale,then 2*scale,...If scaleis too large (scale>255*nt)it is adjusted down to fit.

thresMlAppMeansets all pixels between two thresholdsto the mean of all these pixels in the input band.

thresMlAppMediansets all pixels between two thresholdsto the median of all these pixels in the input band.

ntis the number of thresholds.thresholdsis the vector of thresholds, indexable on 0..nt-1.scaleis the scale factor. histois the histogram ofinband.

 

RESTRICTIONS

inbandand outbandmust have pixel type unsigned byte.

 

SEE ALSO

thresMl(1), histoCentroid(3), thresMlCentroid(3),thresMlCentroid(1), mkComCur(3), thresMlComCur(3),thresMlComCur(1), thresMlReddi(3), thresMlReddi(1),thresMlWaHa(3), thresMlWaHa(1)

 

RETURN VALUE


 0 : Ok
 1 : Bad input pixel type
 2 : Bad output pixel type
 3 : nt is smaller than 1
 4 : scale is negative

 

AUTHOR

Tor Lønnestad, BLAB, Ifi, UiO

 

ID

$Id: thresMlApply.c,v 1.18 1997/01/14 13:05:12 svein Exp $


 

Index

NAME
SYNTAX
DESCRIPTION
RESTRICTIONS
SEE ALSO
RETURN VALUE
AUTHOR
ID

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