NI Vision for LabVIEW

IMAQ FPGA RGBToColor VI

  • Updated2023-02-21
  • 7 minute(s) read
Owning Palette: Color Utilities
Requires: NI Vision Development Module FPGA

Converts an RGB color value into another format.

IMAQ FPGA RGB32ToHSL32

Converts RGB color values into HSL color values.

Instance Details

Supported Image Types

32-bit RGB

IMAQ FPGA RGB32ToHSL32

cnclst.gif

RGB32 In specifies the input color values.

cu8.gif

A is the value of the alpha plane.

cu8.gif

R/H is the red or hue value of the first color plane, depending on the color mode.

cu8.gif

G/S is the green or saturation value of the second color plane, depending on the color mode.

cu8.gif

B/L is the blue or luminance value of the third color plane, depending on the color mode.

cfxp.gif

Offset 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.

cbool.gif

Input Valid specifies whether the next data point has arrived for processing. Wire the Output Valid output of an upstream node to this input to transfer data from the upstream node to this node.

cbool.gif

Ready For Output specifies whether downstream nodes are ready for this node to return a new value. The default is TRUE. Use a Feedback Node to wire the Ready for Input output of a downstream node to this input of the current node.

Note  If this terminal is FALSE during a given cycle, the output valid terminal returns FALSE during that cycle.
inclst.gif

HSL32 Out specifies the output color values.

iu8.gif

A is the value of the alpha plane.

iu8.gif

R/H is the red or hue value of the first color plane, depending on the color mode.

iu8.gif

G/S is the green or saturation value of the second color plane, depending on the color mode.

iu8.gif

B/L is the blue or luminance value of the third color plane, depending on the color mode.

ibool.gif

Output Valid returns TRUE if this node has computed a result that downstream nodes can use. Wire this output to the Input Valid input of a downstream node to transfer data from the node to the downstream node.

ibool.gif

Ready for Input returns TRUE if this node is ready to accept new input data. Use a Feedback Node to wire this output to the Ready for Output input of an upstream node.

Note  If this terminal returns FALSE during a given cycle, LabVIEW discards any data that other nodes send to this node during the following cycle. LabVIEW discards this data even if the Input Valid terminal is TRUE during the following cycle.

IMAQ FPGA RGB32ToHSL32 Details

Note  Resource estimates are based on a 40 MHz clock.

Virtex-5

Estimated Device Utilization

  • Slice Registers: 3229
  • Slice LUTs: 4222
  • DSP48s: 15
  • Block RAMs: 0

Estimated Performance

  • Minimum Latency: 37
  • Initiation Interval: 1

Spartan-6

Estimated Device Utilization

  • Slice Registers: 3112
  • Slice LUTs: 3619
  • DSP48s: 27
  • Block RAMs: 0

Estimated Performance

  • Minimum Latency: 37
  • Initiation Interval: 1

Zynq

Estimated Device Utilization

  • Slice Registers: 3482
  • Slice LUTs: 4542
  • DSP48s: 20
  • Block RAMs: 0

Estimated Performance

  • Minimum Latency: 30
  • Initiation Interval: 1

Kintex-7

Estimated Device Utilization

  • Slice Registers: 1352
  • Slice LUTs: 1799
  • DSP48s: 8
  • Block RAMs: 0

Estimated Performance

  • Minimum Latency: 30
  • Initiation Interval: 1

IMAQ FPGA RGB32ToHSL32 x8

Converts RGB color values into HSL color values.

Instance Details

Supported Image Types

32-bit RGB

IMAQ FPGA RGB32ToHSL32 x8

cnclst.gif

RGB32 In specifies the input color values.

cu8.gif

A is the value of the alpha plane.

cu8.gif

R/H is the red or hue value of the first color plane, depending on the color mode.

cu8.gif

G/S is the green or saturation value of the second color plane, depending on the color mode.

cu8.gif

B/L is the blue or luminance value of the third color plane, depending on the color mode.

cfxp.gif

Offset 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.

cbool.gif

Input Valid specifies whether the next data point has arrived for processing. Wire the Output Valid output of an upstream node to this input to transfer data from the upstream node to this node.

cbool.gif

Ready For Output specifies whether downstream nodes are ready for this node to return a new value. The default is TRUE. Use a Feedback Node to wire the Ready for Input output of a downstream node to this input of the current node.

Note  If this terminal is FALSE during a given cycle, the output valid terminal returns FALSE during that cycle.
inclst.gif

HSL32 Out specifies the output color values.

iu8.gif

A is the value of the alpha plane.

iu8.gif

R/H is the red or hue value of the first color plane, depending on the color mode.

iu8.gif

G/S is the green or saturation value of the second color plane, depending on the color mode.

iu8.gif

B/L is the blue or luminance value of the third color plane, depending on the color mode.

ibool.gif

Output Valid returns TRUE if this node has computed a result that downstream nodes can use. Wire this output to the Input Valid input of a downstream node to transfer data from the node to the downstream node.

ibool.gif

Ready for Input returns TRUE if this node is ready to accept new input data. Use a Feedback Node to wire this output to the Ready for Output input of an upstream node.

Note  If this terminal returns FALSE during a given cycle, LabVIEW discards any data that other nodes send to this node during the following cycle. LabVIEW discards this data even if the Input Valid terminal is TRUE during the following cycle.

IMAQ FPGA RGB32ToHSL32 x8 Details

Note  Resource estimates are based on a 40 MHz clock.

Kintex-7

Estimated Device Utilization

  • Slice Registers: 18794
  • Slice LUTs: 28890
  • DSP48s: 96
  • Block RAMs: 0

Estimated Performance

  • Minimum Latency: 32
  • Initiation Interval: 1