projects
/
master-thesis.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update coding style.
[master-thesis.git]
/
Parasitemia
/
ParasitemiaCore
/
ImgTools
/
Histogram.fs
diff --git
a/Parasitemia/ParasitemiaCore/ImgTools/Histogram.fs
b/Parasitemia/ParasitemiaCore/ImgTools/Histogram.fs
index
df1ecb6
..
718a9de
100644
(file)
--- a/
Parasitemia/ParasitemiaCore/ImgTools/Histogram.fs
+++ b/
Parasitemia/ParasitemiaCore/ImgTools/Histogram.fs
@@
-20,10
+20,10
@@
let histogramImg (img : Image<Gray, float32>) (nbSamples : int) : Histogram =
let min, max =
let min = ref [| 0.0 |]
let min, max =
let min = ref [| 0.0 |]
- let minLocation = ref <| [| Point() |]
+ let minLocation = ref <| [| Point
() |]
let max = ref [| 0.0 |]
let max = ref [| 0.0 |]
- let maxLocation = ref <| [| Point() |]
- img.MinMax(min, max, minLocation, maxLocation)
+ let maxLocation = ref <| [| Point
() |]
+ img.MinMax
(min, max, minLocation, maxLocation)
float32 (!min).[0], float32 (!max).[0]
let inline bin (x : float32) : int =
float32 (!min).[0], float32 (!max).[0]
let inline bin (x : float32) : int =
@@
-44,10
+44,10
@@
let histogramMat (mat : Matrix<float32>) (nbSamples : int) : Histogram =
let min, max =
let min = ref 0.0
let min, max =
let min = ref 0.0
- let minLocation = ref <| Point()
+ let minLocation = ref <| Point
()
let max = ref 0.0
let max = ref 0.0
- let maxLocation = ref <| Point()
- mat.MinMax(min, max, minLocation, maxLocation)
+ let maxLocation = ref <| Point
()
+ mat.MinMax
(min, max, minLocation, maxLocation)
float32 !min, float32 !max
let inline bin (x : float32) : int =
float32 !min, float32 !max
let inline bin (x : float32) : int =