projects
/
master-thesis.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Doc + cleaning.
[master-thesis.git]
/
Parasitemia
/
ParasitemiaCore
/
ImgTools
/
ImgTools.fs
diff --git
a/Parasitemia/ParasitemiaCore/ImgTools/ImgTools.fs
b/Parasitemia/ParasitemiaCore/ImgTools/ImgTools.fs
index
0510bc8
..
0949713
100644
(file)
--- a/
Parasitemia/ParasitemiaCore/ImgTools/ImgTools.fs
+++ b/
Parasitemia/ParasitemiaCore/ImgTools/ImgTools.fs
@@
-6,6
+6,12
@@
open System.Drawing
open Emgu.CV
open Emgu.CV.Structure
open Emgu.CV
open Emgu.CV.Structure
+/// <summary>
+/// Normalize an image between 0 and 'upperLimit'.
+/// FIXME: use to many memory.
+/// </summary>
+/// <param name="img"></param>
+/// <param name="upperLimit"></param>
let normalize (img: Image<Gray, float32>) (upperLimit: float) : Image<Gray, float32> =
let min = ref [| 0.0 |]
let minLocation = ref <| [| Point() |]
let normalize (img: Image<Gray, float32>) (upperLimit: float) : Image<Gray, float32> =
let min = ref [| 0.0 |]
let minLocation = ref <| [| Point() |]