Bugfix in Borderdetector

green was checked twice in isBlack(). Should have been green and blue.

Former-commit-id: c21a5feffa2245414bbf2b224e8a4dc8955f5e00
This commit is contained in:
poljvd 2014-03-17 11:06:30 +01:00
parent 70581ffc31
commit fb73aa786c
1 changed files with 1 additions and 2 deletions

View File

@ -1,4 +1,3 @@
#pragma once
// Utils includes
@ -126,7 +125,7 @@ namespace hyperion
inline bool isBlack(const Pixel_T & color)
{
// Return the simple compare of the color against black
return color.red < _blackborderThreshold && color.green < _blackborderThreshold && color.green < _blackborderThreshold;
return color.red < _blackborderThreshold && color.green < _blackborderThreshold && color.blue < _blackborderThreshold;
}
private: