下面这句代码是获取当前时间:
string time = DateTime.Now.ToString("yyyyMMddhhmmss");
下面这个例子是将图片以文件名的形式保存:
string time = DateTime.Now.ToString("yyyyMMddhhmmss");
Mat roiLeft = new Mat(OrgMat, new Rect(x, y, width, height));
roiLeft.SaveImage("Images" + "//ROILeft_" + ImageNum + "_" + time + ".bmp");