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
/
Pia.fs
diff --git
a/Parasitemia/Parasitemia/GUI/Pia.fs
b/Parasitemia/Parasitemia/GUI/Pia.fs
index
9ddd063
..
432bad9
100644
(file)
--- a/
Parasitemia/Parasitemia/GUI/Pia.fs
+++ b/
Parasitemia/Parasitemia/GUI/Pia.fs
@@
-1,5
+1,5
@@
// ParasitemIA file format.
// ParasitemIA file format.
-module Pia
+module P
arasitemia.GUI.P
ia
open System.Drawing
open System.IO
open System.Drawing
open System.IO
@@
-10,31
+10,30
@@
open FSharp.Data
open Emgu.CV
open Emgu.CV.Structure
open Emgu.CV
open Emgu.CV.Structure
+open Types
+
let extension = ".pia"
let filter = "PIA|*.pia"
let extension = ".pia"
let filter = "PIA|*.pia"
-type RBC = {
- infected: bool
- addedManually: bool
- removed: bool
-
- center: Point
- size: Size
- stainArea: int }
-
-type ImageSource = {
- img: Image<Bgr, byte>
- rbcs: RBC list }
-
type FileData = {
type FileData = {
- sources:
ImageSourc
e list
+ sources:
SourceImag
e list
patientID: string }
// The json type associated to a source image.
type JSONSourceImage = JsonProvider<"""
{
"rbcs": [
patientID: string }
// The json type associated to a source image.
type JSONSourceImage = JsonProvider<"""
{
"rbcs": [
- { "infected": true, "addedManually": false, "removed": false, "posX" : 42, "posY" : 42, "width" : 10, "height" : 10, "stainArea" : 10 }
+ {
+ "num": 1,
+ "infected": true,
+ "addedManually": false,
+ "removed": false,
+ "posX" : 42,
+ "posY" : 42,
+ "width" : 10,
+ "height" : 10,
+ "stainArea" : 10
+ }
]
}
""">
]
}
""">