G'MIC - GREYC's Magic for Image Computing: A Full-Featured Open-Source Framework for Image Processing
Banner Institutions GREYC CNRS ENSICAEN UNICAEN

A Full-Featured Open-Source Framework for Image Processing



Latest stable version: 3.6.2        Current pre-release: 3.6.3 (2025/10/08)

Reference
Table of Contents  ▸  List of Commands  ▸  Colors  ▸  srgb2lab◀  split_vector    |    srgb2lab8  ▶

srgb2lab

Arguments:

  • illuminant={ 0:D50 | 1:D65 | 2:E }    or
  • (no arg)

Description:

Convert color representation of selected images from sRGB to Lab.

Default values:

illuminant=2.

Examples of use:

• Example #1

<a href="image.jpg" class="highslide" onclick="return hs.expand(this)">image.jpg</a> srgb2lab split c

Command: <a href="image.jpg" class="highslide" onclick="return hs.expand(this)">image.jpg</a> srgb2lab split c
Command: <a href="image.jpg" class="highslide" onclick="return hs.expand(this)">image.jpg</a> srgb2lab split c
Command: <a href="image.jpg" class="highslide" onclick="return hs.expand(this)">image.jpg</a> srgb2lab split c

• Example #2

<a href="image.jpg" class="highslide" onclick="return hs.expand(this)">image.jpg</a> srgb2lab +split c mul[-2,-1] 2.5 append[-3--1] c lab2srgb

Command: <a href="image.jpg" class="highslide" onclick="return hs.expand(this)">image.jpg</a> srgb2lab +split c mul[-2,-1] 2.5 append[-3--1] c lab2srgb
Command: <a href="image.jpg" class="highslide" onclick="return hs.expand(this)">image.jpg</a> srgb2lab +split c mul[-2,-1] 2.5 append[-3--1] c lab2srgb
G'MIC - GREYC's Magic for Image Computing: A Full-Featured Open-Source Framework for Image Processing

G'MIC is an open-source software distributed under the CeCILL free software licenses (LGPL-like and/or
GPL-compatible). Copyrights (C) Since July 2008, David Tschumperlé - GREYC UMR CNRS 6072, Image Team.