Table Of Contents

RGB to Color Values (G Dataflow)

Last Modified: June 25, 2019

Convert an RGB color value into another format (HSL, HSV, HSI, CIE L*a*b*, or CIE XYZ).

connector_pane_image
datatype_icon

color mode

Number from 0 to 5 that defines the image color format conversion to perform.

Choose from the following values:

Name Value Description
RGB 0

(Default) no change

HSL 1

Convert to HSL

HSV 2

Convert to HSV

HSI 3

Convert to HSI

CIE L*a*b* 4

Convert to CIE L*a*b*

CIE XYZ 5

Convert to CIE XYZ

datatype_icon

red value

Numeric input for the red value.

datatype_icon

green value

Numeric input for the green value.

datatype_icon

blue value

Numeric input for the blue value.

datatype_icon

offset

Numeric control that adds an offset to the calculated Hue value when Color Mode is set to HSL.

The offset represents the angle by which the hue plane is rotated. Offset can range from 0 to 360.

The default offset value of 0 results in a hue value of 0 for the color red (R=255, G=0, B=0). By changing the offset value, you can specify the RGB color that maps to a hue value of 0. When you want to analyze red or colors close to red in the HSL space, you can add an offset so that the hue values associated with these colors are not zero.

datatype_icon

error in

Error conditions that occur before this node runs.

The node responds to this input according to standard error behavior.

Standard Error Behavior

Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Default: No error

datatype_icon

CIE L*a*b* white reference

Cluster that specifies the CIE X, Y, and Z values associated with white.

The default values of this control work with RGB values of (255, 255, 255) as white.

datatype_icon

red/hue/L*/X value

Output value for the first color plane, depending on the Color Mode chosen.

datatype_icon

green/saturation/a*/Y value

Output value for the second color plane, depending on the Color Mode chosen.

datatype_icon

blue/luma/value/intensity/b*/Z value

Output value for the third color plane, depending on the Color Mode chosen.

datatype_icon

error out

Error information.

The node produces this output according to standard error behavior.

Standard Error Behavior

Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported

Web Server: Not supported in VIs that run in a web application


Recently Viewed Topics