03-24-2021 12:51 PM
Hello! I am trying to use LabVIEW color boxes to display colors that vary based on inputted data. I am reading in a CSV file which contains lux, R, G, and B data points (each has its own column). I have taken the averages of each column, and I would like to use these averages and use them to change the color of 3 color boxes that would indicate the average R, G, and B values. Otherwise it would also work to have one color box that indicates a color based on the set of RGB values. Any help would be very much appreciated!
03-24-2021 01:01 PM
Programming -> Graphics and Sound -> Picture Functions -> RGB to Color
03-24-2021 01:02 PM - edited 03-24-2021 01:07 PM
Why all these coercion dots and disorganized code? Ever heard of the "mean" function? Please attach your actual VI and some data if you want specific help. Getting the colors from 8bit components is a simple left shift by 0, 8, or 16 bits after you converted it to U32 first.
Since you generate averages for each column, you would need an array of three colorboxes, Right? Or do you want a single colorbox that contains the averaged RGB color of all elements?
What's the significance of calculating the standard deviation from each row? Is that a different problem?
03-24-2021 01:22 PM