Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 7faa4cd12598db7d59564e3dc9a0913c > files > 536

vips-7.18.2-1mdv2010.0.i586.rpm

<!-- manual page source format generated by PolyglotMan v3.2, -->
<!-- available at http://polyglotman.sourceforge.net/ -->

<html>
<head>
<title>IM_THRESH(3) manual page</title>
</head>
<body bgcolor='white'>
<a href='#toc'>Table of Contents</a><p>

<h2><a name='sect0' href='#toc0'>Name</a></h2>
im_thresh, im_slice - threshold an image 
<h2><a name='sect1' href='#toc1'>Synopsis</a></h2>
#include &lt;vips/vips.h&gt;

<p> int im_thresh(in, out, threshold) <br>
IMAGE *in, *out; <br>
double threshold; 
<p> int im_slice(in, out, threshold1, threshold2) <br>
IMAGE *in, *out; <br>
double threshold1, threshold2; 
<h2><a name='sect2' href='#toc2'>Description</a></h2>
These functions have been replaced
with the relational and boolean packages - see  <b>im_lessconst() </b> and  <b>im_and()
</b> for much better ways of doing this. 
<p> These functions operate on any non-complex
input.  The output image is a unsigned char image with the same sizes and
the same number of channels as input. 
<p> im_slice() thresholds the image held
by image descriptor in and writes the result on the image descriptor out.
 Output is a byte image with values less than threshold1) set to 0, values
in [threshold1, threshold2) set to 128 and values greater than threshold2
set to 255  (x in range [a,b) means a&lt;=x&lt;b). 
<p> im_threshold() thresholds the
image held by image descriptor in and writes the result on the image descriptor
out.  Output is a byte image with values less than threshold set to 0, and
values greater or equal to threshold set to 255. 
<h2><a name='sect3' href='#toc3'>Return Value</a></h2>
The function
returns 0 on success and -1 on error. 
<h2><a name='sect4' href='#toc4'>See&nbsp;Also</a></h2>
<a href='im_dilate.3.html'>im_dilate(3)</a>
, <a href='im_erode.3.html'>im_erode(3)</a>
, <a href='im_lessconst.3.html'>im_lessconst(3)</a>
,
<a href='im_and.3.html'>im_and(3)</a>
. 
<h2><a name='sect5' href='#toc5'>Copyright</a></h2>
<br>
N. Dessipris, 
<h2><a name='sect6' href='#toc6'>Author</a></h2>
N. Dessipris - 26/04/1991 <p>

<hr><p>
<a name='toc'><b>Table of Contents</b></a><p>
<ul>
<li><a name='toc0' href='#sect0'>Name</a></li>
<li><a name='toc1' href='#sect1'>Synopsis</a></li>
<li><a name='toc2' href='#sect2'>Description</a></li>
<li><a name='toc3' href='#sect3'>Return Value</a></li>
<li><a name='toc4' href='#sect4'>SeeAlso</a></li>
<li><a name='toc5' href='#sect5'>Copyright</a></li>
<li><a name='toc6' href='#sect6'>Author</a></li>
</ul>
</body>
</html>