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)
-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