CString strFilePath = "C:\\Documents and Settings\\Administrator\\桌面\\Image Mosaic Result";
/*判断文件夹是否存在*/
if (!PathFileExists(strFilePath))
{
/*创建文件夹*/
if (!CreateDirectory(strFilePath, NULL))
{
AfxMessageBox("Image Mosaic Result文件夹创建失败!");
}
}
strFilePath += "\\epipolar.jpg";
string s;
s.append(strFilePath.GetBuffer(strFilePath.GetLength()));
strFilePath.ReleaseBuffer();
imwrite(s, tmp);