im_Lab2UCS(3)

im_Lab2UCS3

Derived colour space conversion functions

Usage

#include <vips/vips.h>

int im_Lab2UCS(in, out)
IMAGE *in, *out;

int im_LabQ2XYZ(in, out)
IMAGE *in, *out;

int im_UCS2Lab(in, out)
IMAGE *in, *out;

int im_Lab2disp(in, out, display)
IMAGE *in, *out;
struct im_col_display *display;

int im_disp2Lab(in, out, display)
IMAGE *in, *out;
struct im_col_display *display;

int im_UCS2XYZ(in, out)
IMAGE *in, *out;

int im_XYZ2UCS(in, out)
IMAGE *in, *out;

Overview

These functions are built on the basic VIPS colour space transformations as a convenience for the programmer. See im_Lab2XYZ(3) for an explanation of the colour spaces and the basic conversion functions.

im_Lab2UCS(3), for example, is defined as:

int
im_Lab2UCS( IMAGE *in, IMAGE *out )
{
IMAGE *t1 = im_open_local( out,
"im_Lab2UCS intermediate", "p" );

if( !t1 ||
im_Lab2LCh( in, t1 ) ||
im_LCh2UCS( t1, out ) )
return( -1 );

return( 0 );
}

Return value

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

Releases

4 releases since Debian 3.1 (Sarge); the text changed 1 time.

  1. 3.1–4.0
  2. 5.0–6.0

Author

K. Martinez - 2/12/1992
J. Cupitt - 21/7/93

From libvips-dev 7.20.7-1+b3 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.