Matlab imwrite - 必须提供文件名(Matlab imwrite - a filename must be supplied)
我在目录中有一个图像:
C:\Users\me\folder\A1B1\A\0001.bmp
我有多个目录('A1B1\A', 'A1B1\B', 'A3B1\A', ...) 。 读入该图像并修改后,我将图像存储在变量I 。 我试图用0001_1.bmp保存修改后的图像
a = 'C:\Users\me\folder'
b= 'A1B1'
c = 'A'
img = '0001.bmp'
sp=strsplit(img(1), '.');
full = fullfile(a, b, c);
scat=strcat(full, '\', sp(1), '_1.bmp');
imwrite(I,scat);
但我明白了
Error using imwrite>parse_inputs (line 523)
A filename must be supplied.
我该如何解决这个问题?
I have an image in the directory:
C:\Users\me\folder\A1B1\A\0001.bmp
I have multiple directories ('A1B1\A', 'A1B1\B', 'A3B1\A', ...). After reading in that image and modifying it