Imread Image using pwd?
2 次查看(过去 30 天)
显示 更早的评论
Hi, is there any way to create code for imread image using pwd, without declarad specific directory?
like :
im = imread(pwd,'.bmp');
could help me for this? thank you
0 个评论
采纳的回答
Walter Roberson
2019-1-16
projectdir = pwd;
for K = 1 : 10
basename = sprintf('subject_%05d_sagital.bmp', K);
fullname = fullfile(projectdir, basename);
im = imread(fullname);
end
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!