mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Bugfix in Borderdetector
green was checked twice in isBlack(). Should have been green and blue. Former-commit-id: c21a5feffa2245414bbf2b224e8a4dc8955f5e00
This commit is contained in:
parent
70581ffc31
commit
fb73aa786c
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user