From 0ebd0fe2c451333cd5f23a6366a3d93d91325652 Mon Sep 17 00:00:00 2001
From: amitjans <amitjans@ethz.ch>
Date: Mon, 31 May 2021 20:47:17 +0200
Subject: [PATCH] Reduce blob size, reduce num iterations, increase threshold
 for dim ions

---
 settings.py | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/settings.py b/settings.py
index 7273fd5..123ec2b 100644
--- a/settings.py
+++ b/settings.py
@@ -14,11 +14,14 @@ DB_HOST = '10.241.215.1'
 DB_PORT = 8086
 DB_DATASET = 'barium'
 
+# Minimum pixel distance between ions
+ION_DIST = 15
+
 # Relative intensity threshold to differentiate good/bad isotopes (w.r.t. to max intensity)
-INT_THS = 0.6
+INT_THS = 0.65
 
 # Number of iterations before restarting the position's memory
-NUM_ITERATIONS = 5
+NUM_ITERATIONS = 3
 
 # Relation factor between pixels and distances
 DIST_FACTOR = 70.4
@@ -30,7 +33,7 @@ SHAPE = (960, 1280, 3)
 TYPE = np.uint16
 
 # Blob detection size
-BLOB_SIZE = 9
+BLOB_SIZE = 8
 
 # Region of interest of the image
 REGION = np.array([[8, 466], [1260, 638]])
-- 
GitLab