Table Of Contents

Color Value to Integer (G Dataflow)

Last Modified: June 25, 2019

Convert clusters composed of three colors in mode (R, G, B), (H, S, L), (H, S, V), or (H, S, I) into colors encoded in the form of an unsigned 32-bit integer.

The elements of these clusters can contain single values, 1D arrays, 2D arrays, or a combination of the above.

connector_pane_image
datatype_icon

color value

Cluster containing the value the node converts.

The VI interprets the cluster as (R, G, B), (H, S, L), (H, S, V), or (H, S, I), depending on the Color Mode. The cluster is composed of the following elements:

datatype_icon

Red or Hue value

First color plane value, depending on the Color Mode.

datatype_icon

Green or Sat value

Second color plane value, depending on the Color Mode.

datatype_icon

Blue or Luma or Val or Inten value

Third color plane value, depending on the Color Mode.

datatype_icon

1D color value array

1D array of clusters containing the color values.

datatype_icon

Red or Hue value

First color plane value, depending on the Color Mode.

datatype_icon

Green or Sat value

Second color plane value, depending on the Color Mode.

datatype_icon

Blue or Luma or Val or Inten value

Third color plane value, depending on the Color Mode.

datatype_icon

2D color value array

2D array of clusters containing the color values.

The VI interprets the array of clusters as (R, G, B), (H, S, L), (H, S, V), or (H, S, I), depending on the value Color Mode. These clusters are the same type as Color Value.

datatype_icon

Red or Hue value

First color plane value, depending on the Color Mode.

datatype_icon

Green or Sat value

Second color plane value, depending on the Color Mode.

datatype_icon

Blue or Luma or Val or Inten value

Third color plane value, depending on the Color Mode.

datatype_icon

color mode

Number from 0 to 3 that defines the image color format to use for the operation.

Choose from the following values:

Name Value Description
RGB 0

No change. The input and output values are the same.

HSL 1

Convert to HSL

HSV 2

Convert to HSV

HSI 3

Convert to HSI

Default: RGB

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

U32 value

Array that displays the color value resulting from the input Color Value.

This array is encoded as an unsigned 32-bit integer.

datatype_icon

1D U32 value array

Array that displays the color value resulting from the input 1D Color value array.

This array is encoded as a 1D array of unsigned 32-bit integers.

datatype_icon

2D U32 value array

Array that displays the color value resulting from the input 2D Color value array.

This array is encoded as a 2D array of unsigned 32-bit integers.

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