trans_to_rgbtrans_to_rgbTransToRgbTransToRgbtrans_to_rgb (Operator)

Name

trans_to_rgbtrans_to_rgbTransToRgbTransToRgbtrans_to_rgb — Transform an image from an arbitrary color space to the RGB color space.

Signature

trans_to_rgb(ImageInput1, ImageInput2, ImageInput3 : ImageRed, ImageGreen, ImageBlue : ColorSpace : )

Herror trans_to_rgb(const Hobject ImageInput1, const Hobject ImageInput2, const Hobject ImageInput3, Hobject* ImageRed, Hobject* ImageGreen, Hobject* ImageBlue, const char* ColorSpace)

Herror T_trans_to_rgb(const Hobject ImageInput1, const Hobject ImageInput2, const Hobject ImageInput3, Hobject* ImageRed, Hobject* ImageGreen, Hobject* ImageBlue, const Htuple ColorSpace)

void TransToRgb(const HObject& ImageInput1, const HObject& ImageInput2, const HObject& ImageInput3, HObject* ImageRed, HObject* ImageGreen, HObject* ImageBlue, const HTuple& ColorSpace)

HImage HImage::TransToRgb(const HImage& ImageInput2, const HImage& ImageInput3, HImage* ImageGreen, HImage* ImageBlue, const HString& ColorSpace) const

HImage HImage::TransToRgb(const HImage& ImageInput2, const HImage& ImageInput3, HImage* ImageGreen, HImage* ImageBlue, const char* ColorSpace) const

HImage HImage::TransToRgb(const HImage& ImageInput2, const HImage& ImageInput3, HImage* ImageGreen, HImage* ImageBlue, const wchar_t* ColorSpace) const   ( Windows only)

static void HOperatorSet.TransToRgb(HObject imageInput1, HObject imageInput2, HObject imageInput3, out HObject imageRed, out HObject imageGreen, out HObject imageBlue, HTuple colorSpace)

HImage HImage.TransToRgb(HImage imageInput2, HImage imageInput3, out HImage imageGreen, out HImage imageBlue, string colorSpace)

def trans_to_rgb(image_input_1: HObject, image_input_2: HObject, image_input_3: HObject, color_space: str) -> Tuple[HObject, HObject, HObject]

Description

trans_to_rgbtrans_to_rgbTransToRgbTransToRgbtrans_to_rgb transforms an image from an arbitrary color space (ColorSpaceColorSpaceColorSpacecolorSpacecolor_space) to the RGB color space. The three channels of the image are passed as three separate images on input and output.

The operator trans_to_rgbtrans_to_rgbTransToRgbTransToRgbtrans_to_rgb supports the image types byte, uint2, int4, and real. The domain of the input images must match the domain provided by a corresponding transformation with trans_from_rgbtrans_from_rgbTransFromRgbTransFromRgbtrans_from_rgb. If not, the results of the transformation may not be reasonable.

This includes some scalings in the case of certain image types and transformations:

Supported are the transformations listed below. Note, all domains are based on RGB values scaled to [0; 1]. To obtain the domain of a certain image type, they must be scaled accordingly with the value range. Due to different precision the values obtained using the given equations may slightly differ from the values returned by the operator.

'yiq'

Domain:

'yuv'

Note, this implies that , , and are not independent of each other.

Domain:

'argyb'

Domain:

'ciexyz'

Domain:

'cielab'

Black point B: ( , , ) = (0, 0, 0)

White point W (according to image type):

  • byte: ( , , ) = (255, 255, 255)

  • uint2: ( , , ) = ( , , )

  • int4: ( , , ) = ( , , )

  • real: ( , , ) = (1.0, 1.0, 1.0)

Domain:

(Scaled to the maximum gray value in the case of byte and uint2. In the case of int4 L and a are scaled to the maximum gray value, b is scaled to the minimum gray value, such that the origin stays at 0.)

'cielchab'

Black point B: ( , , ) = (0, 0, 0)

White point W (according to image type):

  • byte: ( , , ) = (255, 255, 255)

  • uint2: ( , , ) = ( , , )

  • int4: ( , , ) = ( , , )

  • real: ( , , ) = (1.0, 1.0, 1.0)

Domain:

(Scaled to the maximum gray value in the case of byte and uint2. In the case of int4, L and C are scaled to the maximum gray value, while h is given in seconds of arc.)

'cieluv'

Black point B: ( , , ) = (0, 0, 0)

White point W (according to image type):

  • byte: ( , , ) = (255, 255, 255)

  • uint2: ( , , ) = ( , , )

  • int4: ( , , ) = ( , ,