+ darkStainLevel: float // Lower -> more sensitive. Careful about illumination on the borders.
+ maxDarkStainRatio: float // When a cell must own less than this ratio to be a RBC.
+
+ stainArea: float32 // Factor of a RBC area. 0.5 means the half of RBC area.
+ stainLevel: float // > 1
+ maxStainRatio: float // When a cell must own less than this ratio to be a RBC.
+
+ infectionArea: float32 // Factor of a RBC area. 0.5 means the half of RBC area.
+ infectionLevel: float // > 1
+
+ standardDeviationMaxRatio: float // The standard deviation of the pixel values of a cell can't be greater than standardDeviationMaxRatio * global standard deviation
+ minimumCellAreaFactor: float32 // Factor of the mean RBC area.
+}
+
+type Config (param: Parameters) =
+ member this.Parameters = param
+ member val Debug = DebugOff with get, set