projects
/
master-thesis.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Micro optimization to improve analysis speed by ~20%
[master-thesis.git]
/
Parasitemia
/
ParasitemiaCore
/
ImgTools
/
IO.fs
diff --git
a/Parasitemia/ParasitemiaCore/ImgTools/IO.fs
b/Parasitemia/ParasitemiaCore/ImgTools/IO.fs
index
219eab6
..
1a663c7
100644
(file)
--- a/
Parasitemia/ParasitemiaCore/ImgTools/IO.fs
+++ b/
Parasitemia/ParasitemiaCore/ImgTools/IO.fs
@@
-6,10
+6,10
@@
open System.Drawing
open Emgu.CV
open Emgu.CV.Structure
open Emgu.CV
open Emgu.CV.Structure
-let saveImg (img
: Image<'TColor, 'TDepth>) (filepath
: string) =
+let saveImg (img
: Image<'TColor, 'TDepth>) (filepath
: string) =
img.Save(filepath)
img.Save(filepath)
-let saveMat (mat
: Matrix<'TDepth>) (filepath
: string) =
+let saveMat (mat
: Matrix<'TDepth>) (filepath
: string) =
use img = new Image<Gray, 'TDeph>(mat.Size)
mat.CopyTo(img)
saveImg img filepath
use img = new Image<Gray, 'TDeph>(mat.Size)
mat.CopyTo(img)
saveImg img filepath