Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > c109337651527e96d7bb9adc83c5b18a > files > 166

libvips-devel-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>LINES(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_cntlines, im_profile - calculate transitions between black and white
pels horizontally or vertically 
<h2><a name='sect1' href='#toc1'>Synopsis</a></h2>
<b>#include &lt;vips/vips.h&gt;</b> 
<p> <b>int im_profile(in,
out, dir)</b> <br>
<b>IMAGE *in, *out;</b> <br>
<b>int dir;</b> 
<p> <b>int im_cntlines(in, nolines, dir)</b> <br>
<b>IMAGE *in;</b> <br>
<b>double *nolines;</b> <br>
<b>int dir;</b> 
<p> 
<h2><a name='sect2' href='#toc2'>Description</a></h2>

<p> <a href='im_profile.3.html'><b>im_profile(3)</b></a>
 searches inward from the edge of the
image and finds the first non-zero pixel. It outputs an image containing
a list of the offsets for each row or column. 
<p> If  <b>dir</b> ==0, then <a href='im_profile.3.html'><b>im_profile(3)</b></a>

searches down from the top edge, writing an image as wide as the input
image, but only 1 pixel high, containing the number of pixels down to the
first non-zero pixel for each column of input pixels. 
<p> If  <b>dir</b> ==1, then
<a href='im_profile.3.html'><b>im_profile(3)</b></a>
 searches across from the left edge, writing an image as high
as the input image, but only 1 pixel wide, containing the number of pixels
across to the first non-zero pixel for each row of input pixels. 
<p> <a href='im_cntlines.3.html'><b>im_cntlines(3)</b></a>

calculates the number of transitions between black and white pixels of
an image.  If dir is 1 then all transitions across the vertical direction
are calculated for all Xsize lines of the image.  If dir is 0 then all transitions
along the horizontal direction for all Ysize lines are calculated.  The
function returns the number of transitions divided by twice the number
of the corresponding Xsize of Ysize lines. The program is primarily used
to calculate the number of unbroken horizontal  (dir=0) or vertical lines
(dir=1) that exist within an image. Input image in can have only one channel.

<p> 
<h2><a name='sect3' href='#toc3'>Return Value</a></h2>
All functions returns 0 on success and -1 on error. 
<h2><a name='sect4' href='#toc4'>See Also</a></h2>
<a href='im_erode.3.html'>im_erode(3)</a>
,
<a href='im_dilate.3.html'>im_dilate(3)</a>
. <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'>See Also</a></li>
</ul>
</body>
</html>