<!-- manual page source format generated by PolyglotMan v3.2, --> <!-- available at http://polyglotman.sourceforge.net/ --> <html> <head> <title>DIVISION(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_divide - divide two images <h2><a name='sect1' href='#toc1'>Synopsis</a></h2> <b>#include <vips/vips.h></b> <p> <b>int im_divide(in1, in2, out)</b> <br> <b>IMAGE *in1, *in2, *out;</b> <p> <h2><a name='sect2' href='#toc2'>Description</a></h2> <a href='im_divide.3.html'><b>im_divide(3)</b></a> divides two images. The result is float except if one (or both) input is double. In the latter case the result is double. If either input is complex, the result is complex. If either input is double complex, the output is double complex. <p> Input images in1 and in2 should have the same channels and the same sizes, however they can be of different types. <p> For complex input pels (x1,y1) and (x2,y2), <a href='im_divide.3.html'><b>im_divide(3)</a> </b> calculates ((x1*x2 + y1*y2)/(x2*x2 + y2*y2), (y1*x2 - x1*y2)/(x2*x2 + y2*y2)).<br> <p> <h2><a name='sect3' href='#toc3'>Bugs</a></h2> The function does not check the result for over/underflow. <h2><a name='sect4' href='#toc4'>Return Value</a></h2> The function returns 0 on success and -1 on error. <h2><a name='sect5' href='#toc5'>See Also</a></h2> <a href='im_remainder.3.html'>im_remainder(3)</a> , <a href='im_multiply.3.html'>im_multiply(3)</a> , <a href='im_subtract.3.html'>im_subtract(3)</a> , <a href='im_lintra.3.html'>im_lintra(3)</a> , <a href='im_add.3.html'>im_add(3)</a> . <h2><a name='sect6' href='#toc6'>Copyright</a></h2> National Gallery, 1995 <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'>Bugs</a></li> <li><a name='toc4' href='#sect4'>Return Value</a></li> <li><a name='toc5' href='#sect5'>SeeAlso</a></li> <li><a name='toc6' href='#sect6'>Copyright</a></li> </ul> </body> </html>