projects
/
master-thesis.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Split the module 'ImgTools' in many modules.
[master-thesis.git]
/
Parasitemia
/
ParasitemiaCore
/
Granulometry.fs
diff --git
a/Parasitemia/ParasitemiaCore/Granulometry.fs
b/Parasitemia/ParasitemiaCore/Granulometry.fs
index
0afe5cc
..
b325534
100644
(file)
--- a/
Parasitemia/ParasitemiaCore/Granulometry.fs
+++ b/
Parasitemia/ParasitemiaCore/Granulometry.fs
@@
-71,7
+71,7
@@
let findRadiusByAreaClosing (img: Image<Gray, float32>) (radiusRange: int * int)
let mutable maxDiff = 0.f
let mutable max_r = r1
let mutable maxDiff = 0.f
let mutable max_r = r1
-
ImgTools
.areaCloseFWithFun imgCopy [ for r in r1 .. r2 -> Math.PI * float r ** 2. |> roundInt, r ] (fun r diff ->
+
Morpho
.areaCloseFWithFun imgCopy [ for r in r1 .. r2 -> Math.PI * float r ** 2. |> roundInt, r ] (fun r diff ->
if r <> r1 && diff > maxDiff
then
maxDiff <- diff
if r <> r1 && diff > maxDiff
then
maxDiff <- diff