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
1 changed files with 3 additions and 2 deletions

View File

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