Bit hsl and hsi – National Instruments Image Acquisition Software User Manual
Page 46

Appendix A
StillColor
©
National Instruments Corporation
A-9
used if you are performing averaging on your image. For example,
averaging an image 16 times requires four extra bits (16 =
) to represent
the increased dynamic range. In this case, using the 16-bit representation
may increase the dynamic range of your image.
Luminance, Intensity, Hue, or Saturation are defined using the Red, Green,
and Blue values in the following formulas:
Luminance = 0.299
×
Red + 0.587
×
Green + 0.114
×
Blue
Intensity = (Red + Green + Blue) / 3
Hue = ATN2 (Y, X)
where
Y = (Green - Blue) /
and
X = (2
×
Red - Green - Blue) /
Saturation =
where
Y = (Green - Blue) /
and
X = (2
×
Red - Green - Blue) /
32-Bit HSL and HSI
You can also pack the three 8-bit Hue, Saturation, and Luminance planes
(HSL) or the three Hue, Saturation, and Intensity planes (HSI) in one array
of 32-bit integers, which is equivalent to the 32-bit RGB representation.
2
4
2
6
X
2
Y
2
×
2
6
UM.book Page 9 Monday, July 13, 1998 9:49 AM
- Instrument Driver NI-DMM (12 pages)
- 24-Bit Half/Full-Bridge Analog Input Module NI 9237 (36 pages)
- NI PXIe-8105 (76 pages)
- PXI NI 5401 (60 pages)
- Fieldpoint CFP-2210 (38 pages)
- NI 781xR (48 pages)
- NI 6233 (180 pages)
- 6508 PCI-DIO-96 (93 pages)
- PXI/CompactPCI Embedded Computer NI PXI-8108 (83 pages)
- NI 9233 (34 pages)
- NI USB-9219 (25 pages)
- GPIB-PC (262 pages)
- cFP-RTD-122 (15 pages)
- USB device 625x (23 pages)
- Isolated Analog Input Modules SCC-AI01 (18 pages)
- NI PCI-6111 (118 pages)
- NI USB-6008 (32 pages)
- PC-DIO-24 (75 pages)
- NI 9474 (31 pages)
- NI 6013 (109 pages)
- PXI-1428 (46 pages)
- NI PCI-5911 (51 pages)
- 2 SD Card Memory Module NI 9802 (16 pages)
- cFP-20xx (24 pages)
- NI USB-9234 (23 pages)
- NI 9871 (24 pages)
- Interface Device NI PCI-1426 (35 pages)
- AT E Series (184 pages)
- 9211A (19 pages)
- Module NI PXI-8250 (39 pages)
- 8330 Series (30 pages)
- NI PXIe-8360 (40 pages)
- Deterministic Ethernet Expansion Chassis NI 9144 (65 pages)
- NI 6509 (23 pages)
- NI MATRIXx Xmath (127 pages)
- NI 9481 (23 pages)
- Monochrome Image Acquisition Device NI 1410 (34 pages)
- VXI-1394 (74 pages)
- NI PXI-8104 (69 pages)
- NI 9235 (38 pages)
- 370620B-01 (17 pages)
- FP-RTD-124 (15 pages)
- VXI-USB (61 pages)
- NI PCI-8254R (45 pages)
- Interface Device NI PCI-8254R (16 pages)