From 82d085de15c9ddc8a3338b29ae724cbfd071df92 Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.dos.anjos@gmail.com>
Date: Tue, 21 Apr 2020 13:57:46 +0200
Subject: [PATCH] [engine.evaluator] Add comment on the blending

---
 bob/ip/binseg/engine/evaluator.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/bob/ip/binseg/engine/evaluator.py b/bob/ip/binseg/engine/evaluator.py
index c3124ef9..d927c84c 100644
--- a/bob/ip/binseg/engine/evaluator.py
+++ b/bob/ip/binseg/engine/evaluator.py
@@ -179,7 +179,9 @@ def _sample_analysis(
 
     if overlay:
         img = VF.to_pil_image(img)  # PIL Image
-        tp_pil_colored = PIL.Image.blend(img, tp_pil_colored, 0.4)
+        # using blend here, to fade original image being overlayed, or
+        # its brightness may obfuscate colors from the vessel map
+        tp_pil_colored = PIL.Image.blend(img, tp_pil_colored, 0.5)
 
     return tp_pil_colored
 
-- 
GitLab