Sophie

Sophie

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

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_SGLDS_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_glds_matrix, im_glds_asm, im_glds_contrast, im_glds_mean, im_glds_entropy
- calculate the spatial grey level difference 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_glds_matrix(im, m, xp, yp, xs, ys,
dx, dy) <br>
<b>IMAGE *im, *m;</b> <br>
<b>int xp, yp, xs, ys;</b> <br>
<b>int dx, dy;</b> 
<p> <b>int im_glds_asm(m, asmoment)</b> <br>
<b>IMAGE *m;</b> <br>
<b>double *asmoment;</b> 
<p> <b>int im_glds_contrast(m, contrast)</b> <br>
<b>IMAGE *m;</b> <br>
<b>double *contrast;</b> 
<p> <b>int im_glds_entropy(m, entropy)</b> <br>
<b>IMAGE *m;</b> <br>
<b>double *entropy;</b> 
<p> <b>int im_glds_mean(m, mean)</b> <br>
<b>IMAGE *m;</b> <br>
<b>double *mean;</b> 
<p> 
<h2><a name='sect2' href='#toc2'>Description</a></h2>
<b>im_glds_matrix()</b> creates a 256 by 1 one channel
spatial grey level difference matrix (sglds) 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. im should be one-band unsigned char. 
<p> All
entries of the sgld 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. 
<p> <b>im_glds_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_glds_contrast()</b> calculates the contrast of the
sglds matrix held by m.  The result is returned into the location pointed
by contrast. 
<p> <b>im_glds_entropy()</b> calculates the entropy of the sglds matrix
held by m.  The result is returned into the location pointed by entropy.

<p> <b>im_glds_mean()</b> calculates the mean of the sglds matrix held by m.  The
result is returned into the location pointed by mean. 
<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_cooc_matrix.3.html'>im_cooc_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 - 10/05/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>