【发布时间】:2013-02-01 22:21:10
【问题描述】:
我在matlab中遇到问题,问题描述如下:
当我尝试读取图像(我有几张图像)并将它们写入特定文件夹时,matlab 会触发错误提示
Error using ==> imwrite at 394
Can't open file "\Temp\\inim735282.4716703009300000.jpg" for writing.
You may not have write permission.
我可以知道为什么会这样吗?
这是出现问题的代码
mkdir('.\Temp');
temp_name = sprintf('%.16f',now);
corner_file = ['\Temp\corners', temp_name,'.in'];
image_file = ['\Temp\inim', temp_name,'.jpg'];
out_file = ['\Temp\out', temp_name,'.desc'];
out_imname = ['\Temp\out', temp_name,'.desc.jpg'];
我试图通过省略来更改它
mkdir('.\Temp');
此外,我通过这样做将文件夹中的路径指向文件夹
binary_path = 'C:\Users\cool\Documents\MATLAB\Experment\experiments\bag_of_words\Temp';
读写文件夹。
有人可以帮我解决这个问题吗?
谢谢大家
【问题讨论】:
标签: image file matlab permissions binary