X-Git-Url: http://git.euphorik.ch/?p=master-thesis.git;a=blobdiff_plain;f=Parasitemia%2FParasitemia%2FGUI%2FTypes.fs;h=f22afdb56cf50c3e956b8becb8a3d98062733641;hp=6e0058637479f1c969fa87a84d4a7dca23ce20f9;hb=807437584bdd3d7b7b33be8282472f81f8cce606;hpb=8013d6a586604e443332e6e9a715c86df444a875 diff --git a/Parasitemia/Parasitemia/GUI/Types.fs b/Parasitemia/Parasitemia/GUI/Types.fs index 6e00586..f22afdb 100644 --- a/Parasitemia/Parasitemia/GUI/Types.fs +++ b/Parasitemia/Parasitemia/GUI/Types.fs @@ -1,5 +1,6 @@ module Parasitemia.GUI.Types +open System open System.Windows open Emgu.CV @@ -13,14 +14,11 @@ type RBC = { center: Point size: Size - infectedArea: int } with - member this.SetAsInfected (infected: bool) = - if infected <> this.infected - then - this.infected <- infected - this.setManually <- not this.setManually + infectedArea: int } type SourceImage = { - num: int + mutable num: int + mutable rbcRadius: float + mutable dateLastAnalysis: DateTime // UTC. img: Image mutable rbcs: RBC list } \ No newline at end of file