Frame width depends now from the RBC sizes #275
[master-thesis.git] / Parasitemia / ParasitemiaUI / Program.fs
index b7b4202..87e1c26 100644 (file)
@@ -99,10 +99,10 @@ let main args =
                             fun () ->
                                 match ParasitemiaCore.Analysis.doMultipleAnalysis images None with
                                 | Some results ->
-                                    for id, cells in results do
+                                    for id, result in results do
                                         let config, img = images |> List.pick (fun (id', config', img') -> if id' = id then Some (config', img') else None)
                                         img.Dispose ()
-                                        let total, infected = countCells cells
+                                        let total, infected = countCells result.Cells
                                         fprintf resultFile "File: %s %d %d %.2f (diameter: %O)\n" id total infected (100. * (float infected) / (float total)) config.RBCRadius
                                 | None ->
                                     fprintf resultFile "Analysis aborted"