projects
/
master-thesis.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleaning, micro-optimizations.
[master-thesis.git]
/
Parasitemia
/
Parasitemia
/
Granulometry.fs
diff --git
a/Parasitemia/Parasitemia/Granulometry.fs
b/Parasitemia/Parasitemia/Granulometry.fs
index
db299dc
..
b18f53c
100644
(file)
--- a/
Parasitemia/Parasitemia/Granulometry.fs
+++ b/
Parasitemia/Parasitemia/Granulometry.fs
@@
-10,7
+10,7
@@
open Utils
// 'range': a minimum and maximum radius.
// 'scale': <= 1.0, to speed up the process.
// 'range': a minimum and maximum radius.
// 'scale': <= 1.0, to speed up the process.
-let findRadius (img: Image<Gray,
byte
>) (range: int * int) (scale: float) : int =
+let findRadius (img: Image<Gray,
'TDepth
>) (range: int * int) (scale: float) : int =
use scaledImg = if scale = 1.0 then img else img.Resize(scale, CvEnum.Inter.Area)
let r1, r2 = range
use scaledImg = if scale = 1.0 then img else img.Resize(scale, CvEnum.Inter.Area)
let r1, r2 = range