Skip to content
This repository was archived by the owner on May 6, 2021. It is now read-only.

Commit c21a5fe

Browse files
committed
Bugfix in Borderdetector
green was checked twice in isBlack(). Should have been green and blue.
1 parent 3741949 commit c21a5fe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

include/blackborder/BlackBorderDetector.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
#pragma once
32

43
// Utils includes
@@ -126,7 +125,7 @@ namespace hyperion
126125
inline bool isBlack(const Pixel_T & color)
127126
{
128127
// Return the simple compare of the color against black
129-
return color.red < _blackborderThreshold && color.green < _blackborderThreshold && color.green < _blackborderThreshold;
128+
return color.red < _blackborderThreshold && color.green < _blackborderThreshold && color.blue < _blackborderThreshold;
130129
}
131130

132131
private:

0 commit comments

Comments
 (0)