<!-- manual page source format generated by PolyglotMan v3.2, --> <!-- available at http://polyglotman.sourceforge.net/ --> <html> <head> <title>IM_LAB2UCS(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_Lab2UCS, im_LabQ2XYZ, im_UCS2Lab, im_Lab2disp, im_disp2Lab, im_UCS2XYZ, im_XYZ2UCS - derived colour space conversion functions <h2><a name='sect1' href='#toc1'>Synopsis</a></h2> #include <vips/vips.h> <p> int im_Lab2UCS(in, out) <br> IMAGE *in, *out; <p> int im_LabQ2XYZ(in, out) <br> IMAGE *in, *out; <p> int im_UCS2Lab(in, out) <br> IMAGE *in, *out; <p> int im_Lab2disp(in, out, display) <br> IMAGE *in, *out; <br> struct im_col_display *display; <p> int im_disp2Lab(in, out, display) <br> IMAGE *in, *out; <br> struct im_col_display *display; <p> int im_UCS2XYZ(in, out) <br> IMAGE *in, *out; <p> int im_XYZ2UCS(in, out) <br> IMAGE *in, *out; <p> <h2><a name='sect2' href='#toc2'>Description</a></h2> These functions are built on the basic VIPS colour space transformations as a convenience for the programmer. See <a href='im_Lab2XYZ.3.html'>im_Lab2XYZ(3)</a> for an explanation of the colour spaces and the basic conversion functions. <p> <a href='im_Lab2UCS.3.html'>im_Lab2UCS(3)</a> , for example, is defined as: <p> int<br> im_Lab2UCS( IMAGE *in, IMAGE *out )<br> {<br> IMAGE *t1 = im_open_local( out, <br> "im_Lab2UCS intermediate", "p" );<br> <br> if( !t1 || <br> im_Lab2LCh( in, t1 ) || <br> im_LCh2UCS( t1, out ) )<br> return( -1 );<br> <br> return( 0 );<br> }<br> <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'>See Also</a></h2> <a href='im_col_XYZ2rgb.3.html'>im_col_XYZ2rgb(3)</a> , <a href='im_dE_fromLab.3.html'>im_dE_fromLab(3)</a> , <a href='im_LabQ2Lab.3.html'>im_LabQ2Lab(3)</a> , <a href='im_Lab2disp.3.html'>im_Lab2disp(3)</a> . <h2><a name='sect5' href='#toc5'>Copyright</a></h2> National Gallery and Birkbeck College, 1990 - 1993 <h2><a name='sect6' href='#toc6'>Author</a></h2> K. Martinez - 2/12/1992 <br> J. Cupitt - 21/7/93 <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> <li><a name='toc5' href='#sect5'>Copyright</a></li> <li><a name='toc6' href='#sect6'>Author</a></li> </ul> </body> </html>