@
durchflieger
Thanks for the quick response (sorry for my late one). So how can I set DFAtmo up to not use dominant hue and saturation, but instead just output the average hue and saturation? To be more precise, what I would like it to do is simply take half the screen (preferably not just the edge, but the left and right half), add the RGB values of each pixel together (or HSV values), divide them by the amount of pixels that are in the array to create the average value and output that to the Arduino.
So as a function (for a Full HD screen, using RGB) something like this (poor coding skills, I am working on it
):
for(i = 0; i < (960 pixels * 1080 pixels); i++)
{
R += arrayContainingAllRedPixelValues[i]
G += arrayContainingAllGreenPixelValues[i]
B += arrayContainingAllBluePixelValues[i]
}
R = R/(960 pixels * 1080 pixels);
G = G/(960 pixels * 1080 pixels);
B = B/(960 pixels * 1080 pixels);
Is something like this possible in your addon? And I still don't quite understand the windowed histogram tables, what do they do to the previously created hue and saturation histogram tables? I tried googling it, but that, unfortunately, didn't make it any clearer.
If I am asking to much, just say so. I don't want to be a bother
.
-Bren730