Peculiar elements overlap RBC now.
[master-thesis.git] / Parasitemia / ParasitemiaUI / Types.fs
index 5de71e6..e29465c 100644 (file)
@@ -7,13 +7,18 @@ open System.Windows.Media
 open Emgu.CV
 open Emgu.CV.Structure
 
+open Newtonsoft.Json
+
 let healthyRBColor = Color.FromRgb(255uy, 255uy, 0uy) // Yellow-green.
 let infectedRBColor = Color.FromRgb(255uy, 0uy, 40uy) // Red with a bit of blue.
 
 type RBC = {
     num: int
 
+    [<JsonIgnore>]
     mutable infected: bool
+
+    [<JsonIgnore>]
     mutable setManually: bool
 
     center: Point
@@ -22,6 +27,8 @@ type RBC = {
 
 type SourceImage = {
     mutable num: int
+    mutable name: string
+
     mutable config: ParasitemiaCore.Config.Config
     mutable dateLastAnalysis: DateTime // UTC.
     img: Image<Bgr, byte>