Update Hyperion.cpp

Former-commit-id: 4c3f0a561d7def20dd713add0d437bdf12431e0b
This commit is contained in:
AEtHeLsYn 2016-03-09 19:57:03 +01:00
parent bcb0802542
commit 90b9acf68e

View File

@ -495,6 +495,7 @@ Hyperion::Hyperion(const Json::Value &jsonConfig) :
_raw2ledTransform(createLedColorsTransform(_ledString.leds().size(), jsonConfig["color"])), _raw2ledTransform(createLedColorsTransform(_ledString.leds().size(), jsonConfig["color"])),
_device(LedDeviceFactory::construct(jsonConfig["device"])), _device(LedDeviceFactory::construct(jsonConfig["device"])),
_effectEngine(nullptr), _effectEngine(nullptr),
_messageForwarder(createMessageForwarder(jsonConfig["forwarder"])),
_timer() _timer()
{ {
if (!_raw2ledCorrection->verifyCorrections()) if (!_raw2ledCorrection->verifyCorrections())
@ -512,8 +513,8 @@ Hyperion::Hyperion(const Json::Value &jsonConfig) :
// initialize the image processor factory // initialize the image processor factory
ImageProcessorFactory::getInstance().init( ImageProcessorFactory::getInstance().init(
_ledString, _ledString,
jsonConfig["blackborderdetector"].get("enable", true).asBool(), jsonConfig["blackborderdetector"]
jsonConfig["blackborderdetector"].get("threshold", 0.01).asDouble()); );
// initialize the color smoothing filter // initialize the color smoothing filter
_device = createColorSmoothing(jsonConfig["color"]["smoothing"], _device); _device = createColorSmoothing(jsonConfig["color"]["smoothing"], _device);