Remove the parasite detection function from Ma.
[master-thesis.git] / Parasitemia / ParasitemiaUI / State.fs
index e15dc9b..5b6a91c 100644 (file)
@@ -142,7 +142,7 @@ type State (defaultConfig: ParasitemiaCore.Config.Config) =
 
         sourceImage.rbcs <- cells
             |> List.filter (fun cell -> match cell.cellClass with ParasitemiaCore.Types.HealthyRBC | ParasitemiaCore.Types.InfectedRBC -> true | _ -> false )
-            |> List.sortByDescending (fun cell -> cell.infectedArea, (w - cell.center.X) + (h - cell.center.Y))
+            |> List.sortByDescending (fun cell -> cell.nucleusArea, (w - cell.center.X) + (h - cell.center.Y))
             |> List.mapi (fun i cell ->
                 let center = Point(float cell.center.X, float cell.center.Y)
                 let infected, setManually =
@@ -155,7 +155,7 @@ type State (defaultConfig: ParasitemiaCore.Config.Config) =
                   setManually = setManually
                   center = center
                   size = Size(float cell.elements.Width, float cell.elements.Height)
-                  infectedArea = cell.infectedArea })
+                  infectedArea = cell.nucleusArea })
 
         alteredSinceLastSave <- true