X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=Parasitemia%2FParasitemiaUI%2FTypes.fs;h=e29465c0008a1b686b7a9f9c58fe1483660baece;hb=154264f33619b78e17182082b483cba97e128698;hp=5de71e6ee967f5a2df1a481586a555445cbead9e;hpb=cb90b01c85183b2c75ee6d22b378b3ca99df6bf3;p=master-thesis.git diff --git a/Parasitemia/ParasitemiaUI/Types.fs b/Parasitemia/ParasitemiaUI/Types.fs index 5de71e6..e29465c 100644 --- a/Parasitemia/ParasitemiaUI/Types.fs +++ b/Parasitemia/ParasitemiaUI/Types.fs @@ -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 + [] mutable infected: bool + + [] 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