Replace "for [..] in [..]" by "for [..] to [..]" for consistency.
[master-thesis.git] / Parasitemia / ParasitemiaCore / ImgTools / Histogram.fs
index 92b73f6..e3a9950 100644 (file)
@@ -30,8 +30,8 @@ let histogramImg (img: Image<Gray, float32>) (nbSamples: int) : Histogram =
 
     let data = Array.zeroCreate nbSamples
 
-    for i in 0 .. img.Height - 1 do
-        for j in 0 .. img.Width - 1 do
+    for i = 0 to img.Height - 1 do
+        for j = 0 to img.Width - 1 do
             let p = bin imgData.[i, j, 0]
             data.[p] <- data.[p] + 1
 
@@ -54,8 +54,8 @@ let histogramMat (mat: Matrix<float32>) (nbSamples: int) : Histogram =
 
     let data = Array.zeroCreate nbSamples
 
-    for i in 0 .. mat.Height - 1 do
-        for j in 0 .. mat.Width - 1 do
+    for i = 0 to mat.Height - 1 do
+        for j = 0 to mat.Width - 1 do
             let p = bin matData.[i, j]
             data.[p] <- data.[p] + 1