type RBC = {
num: int
- infected: bool
- addedManually: bool
- removed: bool
+ mutable infected: bool
+ mutable setManually: bool
center: Point
size: Size
- stainArea: int }
+ infectedArea: int } with
+ member this.SetAsInfected (infected: bool) =
+ if infected <> this.infected
+ then
+ this.infected <- infected
+ this.setManually <- not this.setManually
type SourceImage = {
num: int
img: Image<Bgr, byte>
- rbcs: RBC list }
\ No newline at end of file
+ mutable rbcs: RBC list }
\ No newline at end of file