eLynx lab
Mode menu, the conversion place

Mode menu


Convert to Grey

This command allows color images to be converted to grey.

Compute the luminance from the red, green and blue components:

GreenL = g
MeanL = (r+g+b)/3
DesaturateL = (min(r,g,b) + max(r,g,b))/2
CCIR 601L = 0.2989*r + 0.5866*g + 0.1145*b
CCIR 709L = 0.2125*r + 0.7154*g + 0.0721*b
ITUL = 0.222*r + 0.707*g + 0.071*b

Code sources: include/elx/image/inl/Conversion/Grey.inl, include/elx/image/inl/Conversion/Color.inl


Convert to Bayer

Convert a RGB color image to Bayer image choosing the Bayer matrix pattern.

This is used to test the demosaicing algorithms from synthetized images.


Raw color filled array

Code source: src/Image/Bayer/CreateBayer.hpp


Convert to Color

Convert a gray or gray with alpha image to a RGB or RGBA image copying L plane in each planes.

From a gray+alpha image

Select how to handle the alpha plane

Not implemented by now, click OK


Result with keep alpha channel

Result with remove alpha channel

Result with remove alpha channel
but blend it into other channels

Change Bayer Matrix

Change to Bayer pattern of a Bayer image. Use None to have a full grey image.


Change Color space

Change the color space of a color image.

Note that CIE Lab and HSL color spaces are stored in 32-bit float formats. So for RGB images from lower resolutions (8- and 16-bit) a resolution conversion is done first.

From an image with a Bayer matrix, you have to choose the demosaicing algorithm for the conversion to the RGB color space.

Code sources: src/Image/ColorSpace.cpp, Image/ColorSpace/RGB.hpp, Image/ColorSpace/HLS.hpp, Image/ColorSpace/CIE.hpp, src/Image/Bayer/


Low resolution (8-bit unsigned integer)

Change channel resolution to 8 bits unsigned integer.

This is available only for grey and RGB images with or without alpha channel.


Medium resolution (16-bit unsigned integer)

Change channel resolution to 16 bits unsigned integer.

This is available only for grey and RGB images with or without alpha channel.


High resolution (32-bit floating point)

Change channel resolution to 32 bits floating point.

This is available only for grey and RGB images with or without alpha channel.


Split Channels

This command is used to split each channels into luminance images.


A RGB image is splitted in red, green and blue planes:


Remove Alpha Channel

This command is used to remove Alpha channel from LA or RGBA images.


Apply alpha blending into other channels

Unmodify other channels