mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Dominant Color support (#1569)
* Dominant Color and Mean Color Squared * Workaround - Suppress empty LED updates * Add missing text * Dominant Colors advanced * Test with fixed initial colors * Test with fixed initial colors * Support new processing values via API * ImageToLED - Add reduced pixel processing, make dominant color advanced configurable * Updates on Grabber fps setting * ImageToLedMap - Remove maptype and update test * Update dynamic cluster array allocation
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
// Utils includes
|
||||
#include <utils/Image.h>
|
||||
#include <utils/jsonschema/QJsonFactory.h>
|
||||
#include <utils/Logger.h>
|
||||
|
||||
// Hyperion includes
|
||||
#include <utils/hyperion.h>
|
||||
@@ -9,6 +10,9 @@
|
||||
|
||||
int main()
|
||||
{
|
||||
Logger* log = Logger::getInstance("TestImageLedsMap");
|
||||
Logger::setLogLevel(Logger::DEBUG);
|
||||
|
||||
const QString schemaFile = ":/hyperion-schema";
|
||||
const QString configFile = ":/hyperion_default.config";
|
||||
|
||||
@@ -25,7 +29,7 @@ int main()
|
||||
const ColorRgb testColor = {64, 123, 12};
|
||||
|
||||
Image<ColorRgb> image(64, 64, testColor);
|
||||
hyperion::ImageToLedsMap map(64, 64, 0, 0, ledString.leds());
|
||||
hyperion::ImageToLedsMap map(log, 64, 64, 0, 0, ledString.leds());
|
||||
|
||||
std::vector<ColorRgb> ledColors(ledString.leds().size());
|
||||
map.getMeanLedColor(image, ledColors);
|
||||
|
Reference in New Issue
Block a user