Sophie

Sophie

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

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>IM_COOC_MATRIX(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_cooc_matrix, im_cooc_asm, im_cooc_contrast, im_cooc_correlation,
 im_cooc_entropy - calculate the co-occurrence matrix and features on it

<h2><a name='sect1' href='#toc1'>Synopsis</a></h2>
<b>#include &lt;vips/vips.h&gt;</b> 
<p> int im_cooc_matrix(im, m, xp, yp, xs, ys,
dx, dy, sym) <br>
<b>IMAGE *im, *m;</b> <br>
<b>int xp, yp, xs, ys;</b> <br>
<b>int dx, dy;</b> <br>
<b>int sym;</b> 
<p> <br>
<b>int im_cooc_asm(m, asmoment)</b> <br>
<b>IMAGE *m;</b> <br>
<b>double *asmoment;</b> 
<p> <br>
<b>int im_cooc_contrast(m, contrast)</b> <br>
<b>IMAGE *m;</b> <br>
<b>double *contrast;</b> 
<p> <br>
<b>int im_cooc_correlation(m, correlation)</b> <br>
<b>IMAGE *m;</b> <br>
<b>double *correlation;</b> 
<p> <br>
<b>int im_cooc_entropy(m, entropy)</b> <br>
<b>IMAGE *m;</b> <br>
<b>double *entropy;</b> 
<p> 
<h2><a name='sect2' href='#toc2'>Description</a></h2>
<b>im_cooc_matrix()</b> creates a 256 by 256 one
channel co-occurrence matrix of the box determined by the parameters (xp,
yp; xs, ys) within the image pointed by the IMAGE descriptor im.  The matrix
is written onto the IMAGE descriptor m.  The displacement vector is determined
by (dx, dy).  The user must ensure that there is enough border pixels around
the box within im dictated by the displacement vector (dx,dy) or else the
program fails.  All entries of the co-occurrence matrix are double normalised
to the number of pairs involved. This function is a direct implementation
of the paper:  Haralick R. M., Shanmugan K. and Dinstein I., &rsquo;Textural features
for image classification&rsquo;, IEEE Transactions on Systems, Man, and Cybernetics,
Vol. SMC-3, No 6, Nov. 1973, pp 610-621. Input im should be one band unsigned
char image. 
<p> If flag sym is 1, the created co-occurrence matrix is symmetric
that is dispacement vectors (dx, dy), (-dx, -dy) create exactly the same
matrix.  If sym is 0, the created co-occurrence matrix is not symmetric that
is dispacement vectors (dx, dy), (-dx, -dy) create different matrices. 
<p> <b>im_cooc_asm()</b>
calculates the angular second moment of the co-occurrence matrix held by
m. The result is returned into the location pointed by asmoment. 
<p> <b>im_cooc_contrast()</b>
calculates the contrast of the co-occurrence matrix held by m. The result
is returned into the location pointed by contrast. 
<p> <b>im_cooc_correlation()</b>
calculates the correlation of the co-occurrence matrix held by m. The result
is returned into the location pointed by correlation. 
<p> <b>im_cooc_entropy()</b>
calculates the entropy of the co-occurrence matrix held by m. The result
is returned into the location pointed by entropy. 
<h2><a name='sect3' href='#toc3'>Returned Values</a></h2>
All functions
returns 0 on success and -1 on error. 
<h2><a name='sect4' href='#toc4'>See&nbsp;Also</a></h2>
<a href='im_glds_matrix.3.html'>im_glds_matrix(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 - 2/12/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'>Returned Values</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>