1IM_LAB2UCS(3)              Library Functions Manual              IM_LAB2UCS(3)
2
3
4

NAME

6       im_Lab2UCS,    im_LabQ2XYZ,   im_UCS2Lab,   im_Lab2disp,   im_disp2Lab,
7       im_UCS2XYZ, im_XYZ2UCS - derived colour space conversion functions
8

SYNOPSIS

10       #include <vips/vips.h>
11       #include <vips/colour.h>
12
13       int im_Lab2UCS(in, out)
14       IMAGE *in, *out;
15
16       int im_LabQ2XYZ(in, out)
17       IMAGE *in, *out;
18
19       int im_UCS2Lab(in, out)
20       IMAGE *in, *out;
21
22       int im_Lab2disp(in, out, display)
23       IMAGE *in, *out;
24       struct im_col_display *display;
25
26       int im_disp2Lab(in, out, display)
27       IMAGE *in, *out;
28       struct im_col_display *display;
29
30       int im_UCS2XYZ(in, out)
31       IMAGE *in, *out;
32
33       int im_XYZ2UCS(in, out)
34       IMAGE *in, *out;
35
36

DESCRIPTION

38       These functions are built on the basic VIPS  colour  space  transforma‐
39       tions  as  a  convenience  for the programmer. See im_Lab2XYZ(3) for an
40       explanation of the colour spaces and the basic conversion functions.
41
42       im_Lab2UCS(3), for example, is defined as:
43
44         int
45         im_Lab2UCS( IMAGE *in, IMAGE *out )
46         {
47            IMAGE *t1 = im_open_local( out,
48               "im_Lab2UCS intermediate", "p" );
49
50            if( !t1 ||
51               im_Lab2LCh( in, t1 ) ||
52               im_LCh2UCS( t1, out ) )
53               return( -1 );
54
55            return( 0 );
56         }
57
58

RETURN VALUE

60       The functions return 0 on success and -1 on error.
61

SEE ALSO

63       im_col_XYZ2rgb(3), im_dE_fromLab(3), im_LabQ2Lab(3), im_Lab2disp(3).
64
66       National Gallery and Birkbeck College, 1990 - 1993
67

AUTHOR

69       K. Martinez - 2/12/1992
70       J. Cupitt - 21/7/93
71
72
73
74                                2 December 1992                  IM_LAB2UCS(3)
Impressum