---
name: "im_dE_fromLab"
section: "3"
platform: "linux"
package: "libvips-dev"
version: "7.20.7-1+b3"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/im_dE_fromLab"
---

# im\_dE\_fromLab(3)

calculate colour differences

## NAME

im\_dE\_fromLab, im\_dECMC\_fromLab, im\_dE00\_fromLab - calculate colour differences

## SYNOPSIS

\#include \<vips/vips.h\>

int im\_dE\_fromLab(in1, in2, out)\
 IMAGE \*in1, \*in2, \*out;

int im\_dECMC\_fromLab(in1, in2, out)\
 IMAGE \*in1, \*in2, \*out;

int im\_dE00\_fromLab(in1, in2, out)\
 IMAGE \*in1, \*in2, \*out;

## DESCRIPTION

Given a pair of images in Lab format, these functions calculate CIE76, CMC(1:1) and CIEDE2000 colour difference images.  These are the basic colour  difference calculators in VIPS --- other colour difference functions, such as **[im\_dE\_fromXYZ(3)](/im_dE_fromXYZ/3.md),** are provided as a convenience to the programmer.

See  **[im\_Lab2XYZ(3)](/im_Lab2XYZ/3.md)** for an explanation of the various colour spaces VIPS supports and how to convert between them.

## RETURN VALUE

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

## SEE ALSO

[im\_col\_XYZ2rgb(3)](/im_col_XYZ2rgb/3.md), im\_XYZ2rgb(3), [im\_dE\_fromXYZ(3)](/im_dE_fromXYZ/3.md).

## COPYRIGHT

National Gallery, 1990 - 1993

## AUTHOR

J.Ph. Laurent - 2/12/1992\
 J. Cupitt - 21/7/93
