# Image with LAB colorspace

**URL:** https://discourse.itk.org/t/image-with-lab-colorspace/3593
**Category:** Engineering
**Tags:** image, rgb, lab, colorspace
**Created:** [November 3, 2020, 3:58pm UTC](https://discourse.itk.org/t/image-with-lab-colorspace/3593 "2020-11-03T15:58:36Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![nm97](https://discourse.itk.org/user_avatar/discourse.itk.org/nm97/32/814_2.png) [@nm97](https://discourse.itk.org/u/nm97)
#### Post date: [November 3, 2020, 3:58pm UTC](https://discourse.itk.org/t/image-with-lab-colorspace/3593/1 "2020-11-03T15:58:36Z")

</div>

Hi everyone,

Just wanted to know how can I have an image with LAB colorspace as it is done for example RGB.

```auto
itk::Image<itk::RGBPixel<InputDataType>, Diemnsions>

```

Thank you.

Regards,

Hrach

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [November 3, 2020, 4:02pm UTC](https://discourse.itk.org/t/image-with-lab-colorspace/3593/2 "2020-11-03T16:02:12Z")

</div>

I don’t think LABPixel already exists, but nothing prevents you from inheriting from RGBPixel and defining conversions to/from RGB via constructors and assignment operators.
