IMAQ FPGA ColorBCGLookup VI

Owning Palette: Color Processing
Requires: NI Vision Development Module FPGA

Applies a brightness, contrast, and gamma correction to an image. The correction is performed by computing and applying a lookup table. Brightness, Contrast, and Gamma control the changes made to the transfer function represented by the lookup table. The same brightness, contrast and gamma correction is applied to each color plane.

Use the pull-down menu to select an instance of this VI.

IMAQ FPGA BCGLookup RGB32 x1

Applies a brightness, contrast, and gamma correction to an image. The correction is performed by computing and applying a lookup table. Brightness, Contrast, and Gamma control the changes made to the transfer function represented by the lookup table. The same brightness, contrast and gamma correction is applied to each color plane.

Instance Details

IMAQ FPGA BCGLookup RGB32 x1

/images/reference/en-XX/help/370281AG-01/ccclst.gif

Pixel Bus In when Input Valid is TRUE, contains one of the following: valid pixel data, an end of line signal, or an end of image signal.

/images/reference/en-XX/help/370281AG-01/cnclst.gif

Pixel Data is the value of the pixel.

/images/reference/en-XX/help/370281AG-01/cu8.gif

A is the value of the alpha plane.

/images/reference/en-XX/help/370281AG-01/cu8.gif

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

/images/reference/en-XX/help/370281AG-01/cu8.gif

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

/images/reference/en-XX/help/370281AG-01/cu8.gif

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

/images/reference/en-XX/help/370281AG-01/cbool.gif

DV Data valid. Determines whether the Pixel Data element should be use (TRUE) or ignored (FALSE).

/images/reference/en-XX/help/370281AG-01/cbool.gif

EOL End of line. When TRUE, indicates that the end of the line has been reached.

/images/reference/en-XX/help/370281AG-01/cbool.gif

EOI End of image. When TRUE, indicates that the end of the image has been reached.

/images/reference/en-XX/help/370281AG-01/cenum.gif

Data Type is used in the block diagram for determining the type of the Pixel Bus. Unused during processing and gets optimized out of the compiled bit stream.

/images/reference/en-XX/help/370281AG-01/cnclst.gif

BCG Values is a cluster of the brightness, contrast, and gamma values.

/images/reference/en-XX/help/370281AG-01/cfxp.gif

Brightness (default = 128) sets the brightness of the image. This value is used as the x intercept of the transfer function in the lookup table. The neutral value is 128 (no change in the image). A higher value returns a brighter image. A value less than 128 decreases the overall brightness of the image.

/images/reference/en-XX/help/370281AG-01/cfxp.gif

Contrast (default = 45.0) sets the contrast of the image. This control is used as the slope of the transfer function in the lookup table and is expressed in degrees. A slope of 45 degrees is neutral. A higher value returns a more contrasted image. A value smaller than 45 decreases the contrast of the image.

/images/reference/en-XX/help/370281AG-01/cfxp.gif

Gamma (default = 1.0) sets the gamma correction applied to the image. The neutral value is 1. A value greater than 1 gives extended contrast for small pixel values and less contrast for large pixel values. A value smaller than 1 returns an image with less contrast for small pixel values and extended contrast for large pixel values.

/images/reference/en-XX/help/370281AG-01/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.

/images/reference/en-XX/help/370281AG-01/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.
/images/reference/en-XX/help/370281AG-01/icclst.gif

Pixel Bus Out when Input Valid is TRUE, contains one of the following: valid pixel data, an end of line signal, or an end of image signal.

/images/reference/en-XX/help/370281AG-01/inclst.gif

Pixel Data is the value of the pixel.

/images/reference/en-XX/help/370281AG-01/iu8.gif

A is the value of the alpha plane.

/images/reference/en-XX/help/370281AG-01/iu8.gif

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

/images/reference/en-XX/help/370281AG-01/iu8.gif

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

/images/reference/en-XX/help/370281AG-01/iu8.gif

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

/images/reference/en-XX/help/370281AG-01/ibool.gif

DV Data valid. Determines whether the Pixel Data element should be use (TRUE) or ignored (FALSE).

/images/reference/en-XX/help/370281AG-01/ibool.gif

EOL End of line. When TRUE, indicates that the end of the line has been reached.

/images/reference/en-XX/help/370281AG-01/ibool.gif

EOI End of image. When TRUE, indicates that the end of the image has been reached.

/images/reference/en-XX/help/370281AG-01/ienum.gif

Data Type is used in the block diagram for determining the type of the Pixel Bus. Unused during processing and gets optimized out of the compiled bit stream.

/images/reference/en-XX/help/370281AG-01/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.

/images/reference/en-XX/help/370281AG-01/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 BCGLookup RGB32 x1 Details

Note  Resource estimates are based on a 40 MHz clock.

Virtex-5

Estimated Device Utilization

  • Slice Registers: 7690
  • Slice LUTs: 8447
  • DSP48s: 12
  • Block RAMs: 3

Estimated Performance

  • Minimum Latency: 75
  • Initiation Interval: 1

Spartan-6

Estimated Device Utilization

  • Slice Registers: 7292
  • Slice LUTs: 7861
  • DSP48s: 14
  • Block RAMs: 3

Estimated Performance

  • Minimum Latency: 75
  • Initiation Interval: 1

Zynq

Estimated Device Utilization

  • Slice Registers: 8431
  • Slice LUTs: 7954
  • DSP48s: 12
  • Block RAMs: 4

Estimated Performance

  • Minimum Latency: 82
  • Initiation Interval: 1

Kintex-7

Estimated Device Utilization

  • Slice Registers: 8403
  • Slice LUTs: 7975
  • DSP48s: 12
  • Block RAMs: 4

Estimated Performance

  • Minimum Latency: 82
  • Initiation Interval: 1

IMAQ FPGA BCGLookup RGB32 x8

Applies a brightness, contrast, and gamma correction to an image. The correction is performed by computing and applying a lookup table. Brightness, Contrast, and Gamma control the changes made to the transfer function represented by the lookup table. The same brightness, contrast and gamma correction is applied to each color plane.

Instance Details

IMAQ FPGA BCGLookup RGB32 x8

/images/reference/en-XX/help/370281AG-01/ccclst.gif

Pixel Bus In when Input Valid is TRUE, contains one of the following: valid pixel data, an end of line signal, or an end of image signal.

/images/reference/en-XX/help/370281AG-01/cnclst.gif

Pixel Data is the value of the pixel.

/images/reference/en-XX/help/370281AG-01/cu8.gif

A is the value of the alpha plane.

/images/reference/en-XX/help/370281AG-01/cu8.gif

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

/images/reference/en-XX/help/370281AG-01/cu8.gif

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

/images/reference/en-XX/help/370281AG-01/cu8.gif

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

/images/reference/en-XX/help/370281AG-01/cbool.gif

DV Data valid. Determines whether the Pixel Data element should be use (TRUE) or ignored (FALSE).

/images/reference/en-XX/help/370281AG-01/cbool.gif

EOL End of line. When TRUE, indicates that the end of the line has been reached.

/images/reference/en-XX/help/370281AG-01/cbool.gif

EOI End of image. When TRUE, indicates that the end of the image has been reached.

/images/reference/en-XX/help/370281AG-01/cenum.gif

Data Type is used in the block diagram for determining the type of the Pixel Bus. Unused during processing and gets optimized out of the compiled bit stream.

/images/reference/en-XX/help/370281AG-01/cnclst.gif

BCG Values is a cluster of the brightness, contrast, and gamma values.

/images/reference/en-XX/help/370281AG-01/cfxp.gif

Brightness (default = 128) sets the brightness of the image. This value is used as the x intercept of the transfer function in the lookup table. The neutral value is 128 (no change in the image). A higher value returns a brighter image. A value less than 128 decreases the overall brightness of the image.

/images/reference/en-XX/help/370281AG-01/cfxp.gif

Contrast (default = 45.0) sets the contrast of the image. This control is used as the slope of the transfer function in the lookup table and is expressed in degrees. A slope of 45 degrees is neutral. A higher value returns a more contrasted image. A value smaller than 45 decreases the contrast of the image.

/images/reference/en-XX/help/370281AG-01/cfxp.gif

Gamma (default = 1.0) sets the gamma correction applied to the image. The neutral value is 1. A value greater than 1 gives extended contrast for small pixel values and less contrast for large pixel values. A value smaller than 1 returns an image with less contrast for small pixel values and extended contrast for large pixel values.

/images/reference/en-XX/help/370281AG-01/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.

/images/reference/en-XX/help/370281AG-01/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.
/images/reference/en-XX/help/370281AG-01/icclst.gif

Pixel Bus Out when Input Valid is TRUE, contains one of the following: valid pixel data, an end of line signal, or an end of image signal.

/images/reference/en-XX/help/370281AG-01/inclst.gif

Pixel Data is the value of the pixel.

/images/reference/en-XX/help/370281AG-01/iu8.gif

A is the value of the alpha plane.

/images/reference/en-XX/help/370281AG-01/iu8.gif

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

/images/reference/en-XX/help/370281AG-01/iu8.gif

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

/images/reference/en-XX/help/370281AG-01/iu8.gif

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

/images/reference/en-XX/help/370281AG-01/ibool.gif

DV Data valid. Determines whether the Pixel Data element should be use (TRUE) or ignored (FALSE).

/images/reference/en-XX/help/370281AG-01/ibool.gif

EOL End of line. When TRUE, indicates that the end of the line has been reached.

/images/reference/en-XX/help/370281AG-01/ibool.gif

EOI End of image. When TRUE, indicates that the end of the image has been reached.

/images/reference/en-XX/help/370281AG-01/ienum.gif

Data Type is used in the block diagram for determining the type of the Pixel Bus. Unused during processing and gets optimized out of the compiled bit stream.

/images/reference/en-XX/help/370281AG-01/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.

/images/reference/en-XX/help/370281AG-01/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 BCGLookup RGB32 x8 Details

Note  Resource estimates are based on a 40 MHz clock.

Kintex-7

Estimated Device Utilization

  • Slice Registers: 7377
  • Slice LUTs: 8609
  • DSP48s: 12
  • Block RAMs: 21

Estimated Performance

  • Minimum Latency: 80
  • Initiation Interval: 1

Kintex-UltraScale

Estimated Device Utilization

  • Slice Registers: 9463
  • Slice LUTs: 8749
  • DSP48s: 12
  • Block RAMs: 19

Estimated Performance

  • Minimum Latency: 80
  • Initiation Interval: 1

WAS THIS ARTICLE HELPFUL?

Not Helpful