S-CIELAB Matlab Implementation


This document is parallel to the CommentedExample.m file that comes with the S-CIELAB distribution. CommentedExample.m is a Matlab script that you can use to try out the S-CIELAB Matlab calculations we have developed. We have modified this file into HTML format so that you can get an idea of how the program runs before downloading the Matlab files.

In this page we will (1) illustrate how to calculate the S-CIELAB representation for an image, and (2) illustrate how to calculate the S-CIELAB errors (Delta Es) for a pair of images.

For this file, we assume that you are going to evaluate the error between a pair of images that are presently coded as RGB data, and displayed on a CRT monitor. The initial calculation converts the RGB data to CIE XYZ data. The calculations are similar if your images are coded as CMYK (for printing), but you will need to convert from CMYK to XYZ instead of converting from RGB to XYZ.


  1. Reading in your image data
  2. Defining spatial calibration information
  3. Defining color calibration information
  4. Setting up the image data for S-CIELAB
  5. Running the S-CIELAB function
  6. Examining results

© Xuemei Zhang