Add a logger assembly and split the main assembly in two : the UI and the parasitemia...
[master-thesis.git] / Parasitemia / ParasitemiaUI / Types.fs
diff --git a/Parasitemia/ParasitemiaUI/Types.fs b/Parasitemia/ParasitemiaUI/Types.fs
new file mode 100644 (file)
index 0000000..7d80294
--- /dev/null
@@ -0,0 +1,24 @@
+module ParasitemiaUI.Types
+
+open System
+open System.Windows
+
+open Emgu.CV
+open Emgu.CV.Structure
+
+type RBC = {
+    num: int
+
+    mutable infected: bool
+    mutable setManually: bool
+
+    center: Point
+    size: Size
+    infectedArea: int }
+
+type SourceImage = {
+    mutable num: int
+    mutable config: ParasitemiaCore.Config.Config
+    mutable dateLastAnalysis: DateTime // UTC.
+    img: Image<Bgr, byte>
+    mutable rbcs: RBC list }
\ No newline at end of file