EasyColorComponent

Support

Required licenses

EasyImage

Recommended images

Any image from the folder Sample Images/EasyColor

Location

Image Processing/Basic or Console samples/Image Processing with Python

Purpose

This sample program demonstrates how to:

  • Retrieve one component of a color image after converting it from RGB to a given color space.

Code highlights

  1. Configure the color lookup table for converting RGB to another color space (ISH in this case).

    m_ColorLookup.ConvertFromRgb(EColorSystem_Ish);
    
  2. Retrieve a component from a color image using the conversion configured in the color lookup table.

    EasyColor::GetComponent(&m_Src, &m_Dst, m_un32Component, &m_ColorLookup);