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