projects
/
master-thesis.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
GUI (work in progress..)
[master-thesis.git]
/
Parasitemia
/
Parasitemia
/
GUI
/
State.fs
diff --git
a/Parasitemia/Parasitemia/GUI/State.fs
b/Parasitemia/Parasitemia/GUI/State.fs
index
b35b331
..
4502536
100644
(file)
--- a/
Parasitemia/Parasitemia/GUI/State.fs
+++ b/
Parasitemia/Parasitemia/GUI/State.fs
@@
-15,12
+15,14
@@
type State () =
member val PatientID: string = "" with get, set
member this.Save () =
member val PatientID: string = "" with get, set
member this.Save () =
- let data = { Pia.sources =
[]
; Pia.patientID = this.PatientID }
+ let data = { Pia.sources =
List.ofSeq sourceImages
; Pia.patientID = this.PatientID }
Pia.save this.FilePath data
member this.Load () =
let data = Pia.load this.FilePath
this.PatientID <- data.patientID
Pia.save this.FilePath data
member this.Load () =
let data = Pia.load this.FilePath
this.PatientID <- data.patientID
+ sourceImages.Clear()
+ sourceImages.InsertRange(0, data.sources)
member this.AddSourceImage (filePath: string) : SourceImage =
let srcImg = { num = sourceImages.Count + 1; rbcs = []; img = new Image<Bgr, byte>(filePath) }
member this.AddSourceImage (filePath: string) : SourceImage =
let srcImg = { num = sourceImages.Count + 1; rbcs = []; img = new Image<Bgr, byte>(filePath) }