Fix an out-of-bound array access.
[master-thesis.git] / Parasitemia / Parasitemia / Config.fs
index 75aa95f..464fd7e 100644 (file)
@@ -1,20 +1,40 @@
 module Config
 
+type Debug =
+    | DebugOff
+    | DebugOn of string // Output directory.
+
 type Config = {
+    debug: Debug
+
     scale: float
 
+    minRBCSize: float
+    maxRBCSize: float
+
     doGSigma1: float
     doGSigma2: float
     doGLowFreqPercentageReduction: float
 
+    // Ellipse.
+    factorNbPick: float
+    factorWindowSize: float // factor of 'maxRBCSize'.
+
     // Parasites detection.
     darkStainLevel: float
 
     stainSigma: float
     stainLevel: float
     stainSpreadRequired: float
-    
+
     infectionSigma: float
     infectionLevel: float
     infectionPixelsRequired: int
+
+    percentageOfFgValidCell: float
+
+    MaxDarkStainRatio: float
+
+    minimumCellArea: int
+    maxOffcenter: float
 }
\ No newline at end of file