Sophie

Sophie

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

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_AFFINEI(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_affinei - apply an affine transform to an image 
<h2><a name='sect1' href='#toc1'>Synopsis</a></h2>
<b>#include
&lt;vips/vips.h&gt;</b> 
<p> int im_affinei(in, out, interpolate, a, b, c, d, dx, dy, x,
y, w, h) <br>
<b>IMAGE *in, *out;</b> <br>
<b>VipsInterpolate *interpolate;</b> <br>
<b>double a, b, c, d, dx, dy;</b> <br>
<b>int x, y;</b> <br>
<b>int w, h;</b> 
<p> int im_affinei_all(in, out, interpolate, a, b, c, d, dx, dy)
<br>
<b>IMAGE *in, *out;</b> <br>
<b>VipsInterpolate *interpolate;</b> <br>
<b>double a, b, c, d, dx, dy;</b> 
<p> 
<h2><a name='sect2' href='#toc2'>Description</a></h2>
<a href='im_affinei.3.html'><b>im_affinei(3)</b></a>
 applies an affine
transformation on the image held by the IMAGE descriptor in and puts the
result at the location pointed by the IMAGE descriptor out. in many have
any number of bands, be any size, and have any non-complex type. 
<p> The transformation
is described by a, b, c, d, dx, dy.  The point (x,y) in  the input is mapped
onto point (X,Y) in the output by 
<p>   X = a * x + b * y + dx<br>
   Y = c * x + d * y + dy<br>
 
<p> The area of the output image given by w, h, x, y is generated. (0,0) is
 the position of the transformed top-left-hand corner of the input image.

<p> Points are generated using the supplied interpolator. See  <a href='VipsInterpolate.3.html'><b>VipsInterpolate(3)</b></a>

for a list of the interpolators that come with vips.  
<p> <a href='im_affinei_all.3.html'><b>im_affinei_all(3)</a>

</b> is a convenience function that transforms the whole of the input image.
It calls  <a href='im_affine.3.html'><b>im_affine(3)</a>
 </b> for you, with x y w h set to exactly enclose the
transformed image. 
<p> 
<h2><a name='sect3' href='#toc3'>Return Value</a></h2>
The functions return 0 on success and -1
on error. 
<h2><a name='sect4' href='#toc4'>Bugs</a></h2>
As with most resamplers, <a href='im_affine.3.html'>im_affine(3)</a>
 performs poorly at the
edges of images. 
<h2><a name='sect5' href='#toc5'>See Also</a></h2>
<a href='im_similarity.3.html'>im_similarity(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'>Bugs</a></li>
<li><a name='toc5' href='#sect5'>See Also</a></li>
</ul>
</body>
</html>