Frame width depends now from the RBC sizes #275
[master-thesis.git] / Parasitemia / ParasitemiaUI / Types.fs
index ada2a1f..3a3cf56 100644 (file)
@@ -11,9 +11,6 @@ open Newtonsoft.Json
 
 open ParasitemiaCore.UnitsOfMeasure
 
-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
@@ -29,30 +26,6 @@ type RBC =
         infectedArea : int
     }
 
-type SourceImage =
-    {
-        mutable num : int
-        mutable name : string
-
-        mutable config : ParasitemiaCore.Config.Config
-        mutable dateLastAnalysis : DateTime // UTC.
-        img : Image<Bgr, byte>
-        mutable rbcs : RBC list
-
-        mutable healthyRBCBrightness : float32
-        mutable infectedRBCBrightness : float32
-    }
-    with
-        member this.HealthyRBCColor : SolidColorBrush =
-            let mutable color = healthyRBColor * this.healthyRBCBrightness
-            color.A <- 255uy
-            SolidColorBrush (color)
-
-        member this.InfectedRBCColor : SolidColorBrush =
-            let mutable color = infectedRBColor * this.infectedRBCBrightness
-            color.A <- 255uy
-            SolidColorBrush (color)
-
 type PredefinedPPI =
     {
         ppi : int<ppi>