To download NI software, including the products shown below, visit ni.com/downloads.
Overview
Correlated Color Temperature (CCT) is a measurement of the color of light produced by a light source. It is the temperature of an ideal black body radiator that radiates light of comparable hue to a light source. Note: a blackbody radiator is an idealization that represents an object that absorbs all incident electromagnetic radiation.
Description
The following example provides a method for converting RGB U32 image pixel values to the CIE 1960 u,v color space, which is frequently used to calculate the CCT. The application then finds the average u and v chromaticity values, which when used in conjunction with the CIE 1960 UCS (Uniform Color Space) diagram, can calculate the correlated color temperature. The subVIs in this application can also be used a reference for converting image to the CIE 1931 x,y chromaticity color space and CIE 1960 u,v chromaticity color space.
Requirements
Steps to Implement or Execute Code
Additional Information or References
VI Block Diagram
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.