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