projects
/
master-thesis.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace "for [..] in [..]" by "for [..] to [..]" for consistency.
[master-thesis.git]
/
Parasitemia
/
ParasitemiaCore
/
KMeans.fs
diff --git
a/Parasitemia/ParasitemiaCore/KMeans.fs
b/Parasitemia/ParasitemiaCore/KMeans.fs
index
86f1e3b
..
6e52947
100644
(file)
--- a/
Parasitemia/ParasitemiaCore/KMeans.fs
+++ b/
Parasitemia/ParasitemiaCore/KMeans.fs
@@
-35,7
+35,7
@@
let kmeans (img: Image<Gray, float32>) : Result =
let imgData = img.Data
let fgData = fg.Data
let imgData = img.Data
let fgData = fg.Data
- for i
in 1 ..
nbIteration do
+ for i
= 1 to
nbIteration do
match d_bg with
| null -> ()
| _ ->
match d_bg with
| null -> ()
| _ ->
@@
-54,8
+54,8
@@
let kmeans (img: Image<Gray, float32>) : Result =
let mutable fg_total = 0.f
let mutable fg_nb = 0
let mutable fg_total = 0.f
let mutable fg_nb = 0
- for i
in 0 ..
h - 1 do
- for j
in 0 ..
w - 1 do
+ for i
= 0 to
h - 1 do
+ for j
= 0 to
w - 1 do
if fgData.[i, j, 0] > 0uy
then
fg_total <- fg_total + imgData.[i, j, 0]
if fgData.[i, j, 0] > 0uy
then
fg_total <- fg_total + imgData.[i, j, 0]