7 | DebugOn of string // Output directory.
19 factorWindowSize
: float // factor of 'maxRBCSize'.
21 // Parasites detection.
24 stainArea
: float // Factor of a RBC area. 0.5 means the half of RBC area.
25 stainLevel
: float // [0, 1]
27 infectionArea
: float // Factor of a RBC area. 0.5 means the half of RBC area.
28 infectionLevel
: float // [0, 1]
29 parasitePixelsRequired
: int
31 maxDarkStainRatio
: float
33 standardDeviationMaxRatio
: float // The standard deviation of the pixel values of a cell can't be greater than standardDeviationMaxRatio * global standard deviation
34 minimumCellArea
: float // Factor of RBC area.
37 type Config (param
: Parameters) =
38 member this
.Parameters = param
39 member val Debug = DebugOff with get
, set
40 member val RBCRadius = 30. with get
, set
42 member this
.RBCMinRadius = this
.RBCRadius + param
.minRbcRadius
* this
.RBCRadius
43 member this
.RBCMaxRadius = this
.RBCRadius + param
.maxRbcRadius
* this
.RBCRadius
45 member this
.RBCMinArea = param
.minimumCellArea
* Math.PI * this
.RBCRadius ** 2.0
47 member this
.InfectionArea = param
.infectionArea
* Math.PI * this
.RBCRadius ** 2.0
48 member this
.StainArea = param
.stainArea
* Math.PI * this
.RBCRadius ** 2.0