To .NET 5 (lot of refactoring)
[master-thesis.git] / Parasitemia / ParasitemiaCore / ImgTools / IO.fs
1 module ParasitemiaCore.IO
2
3 open Emgu.CV
4 open Emgu.CV.Structure
5
6 let saveImg (img : Image<'TColor, 'TDepth>) (filepath : string) =
7 img.Save filepath
8
9 let saveMat (mat : Matrix<'TDepth>) (filepath : string) =
10 use img = new Image<Gray, 'TDeph> (mat.Size)
11 mat.CopyTo img
12 saveImg img filepath