From fa1e3e36697d716b00a52a3473d0274485a7703a Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Wed, 1 Feb 2017 22:55:17 +0100 Subject: [PATCH] computeColor: Fix the color order The order is BGR, not RGB. Signed-off-by: Gergely Nagy --- src/Akela/Heatmap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Akela/Heatmap.cpp b/src/Akela/Heatmap.cpp index 0feed26b..a7ae9410 100644 --- a/src/Akela/Heatmap.cpp +++ b/src/Akela/Heatmap.cpp @@ -60,7 +60,7 @@ namespace Akela { uint8_t g = (int)(((heatColors[idx2][1] - heatColors[idx1][1]) * fb + heatColors[idx1][1]) * 255); uint8_t b = (int)(((heatColors[idx2][2] - heatColors[idx1][2]) * fb + heatColors[idx1][2]) * 255); - return {r, g, b}; + return {b, g, r}; } Heatmap::Heatmap (void) {