From c3ba0438df2436cad6ab756135427fa7fe71384e Mon Sep 17 00:00:00 2001 From: johan Date: Sun, 8 Dec 2013 11:33:21 +0100 Subject: [PATCH] Relaxed the requirements for a border a little Former-commit-id: 7cf7e22665fb136fbb0c83737acc7c1ff9d6de0a --- include/hyperion/BlackBorderDetector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/hyperion/BlackBorderDetector.h b/include/hyperion/BlackBorderDetector.h index ba71ebb4..c3393bdb 100644 --- a/include/hyperion/BlackBorderDetector.h +++ b/include/hyperion/BlackBorderDetector.h @@ -125,7 +125,7 @@ namespace hyperion inline bool isBlack(const Pixel_T & color) { // Return the simple compare of the color against black - return color.red+color.green+color.green == 0; + return color.red < 3 && color.green < 3 && color.green < 3; } }; } // end namespace hyperion