* Add the possibility to set an RBC as healthy or infected
[master-thesis.git] / Parasitemia / Parasitemia / GUI / PiaZ.fs
index 900ec65..a373e53 100644 (file)
@@ -71,7 +71,7 @@ let save (filePath: string) (data: FileData) =
                                             rbc.num,
                                             rbc.infected, rbc.setManually,
                                             decimal rbc.center.X, decimal rbc.center.Y, decimal rbc.size.Width, decimal rbc.size.Height,
-                                            rbc.stainArea) |])
+                                            rbc.infectedArea) |])
 
         let imgJSONEntry = file.CreateEntry(imgFilename + ".json", CompressionLevel.Fastest)
         use imgJSONFileWriter = new StreamWriter(imgJSONEntry.Open())
@@ -98,5 +98,5 @@ let load (filePath: string) : FileData =
                                                             { num = rbc.Num;
                                                               infected = rbc.Infected; setManually = rbc.SetManually;
                                                               center = Point(float rbc.PosX, float rbc.PosY); size = Size(float rbc.Width, float rbc.Height);
-                                                              stainArea = rbc.StainArea } ] } ]
+                                                              infectedArea = rbc.StainArea } ] } ]
     { sources = sources; patientID = mainJSON.PatientId }
\ No newline at end of file