* Remove ellipses with a too high standard variation.
[master-thesis.git] / Parasitemia / Parasitemia / Program.fs
index 103596a..5b8c3e4 100644 (file)
@@ -61,8 +61,8 @@ let main args =
             Config(
               { scale = 1.
 
-                minRbcRadius = -0.3
-                maxRbcRadius = 0.3
+                minRbcRadius = -0.35
+                maxRbcRadius = 0.35
 
                 preFilterSigma = 1.5
 
@@ -71,16 +71,17 @@ let main args =
 
                 darkStainLevel = 0.4 // Lower -> more sensitive.
 
-                stainArea = 0.02
-                stainLevel = 0.2
-
-                infectionArea = 0.06
+                infectionArea = 0.015
                 infectionLevel = 0.2
-                infectionPixelsRequired = 1
+                parasitePixelsRequired = 1
+
+                stainArea = 0.06
+                stainLevel = 0.2
 
                 maxDarkStainRatio = 0.1
 
-                minimumCellArea = 0.3 })
+                standardDeviationMaxRatio = 0.65
+                minimumCellArea = 0.5 })
 
         match mode with
         | CmdLine (input, output) ->