Imread Image using pwd?

5 次查看(过去 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

采纳的回答

Walter Roberson
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
  3 个评论
Oman Wisni
Oman Wisni 2019-1-17
Yes sir, I already got what I need for this. Thank you for the answer

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Convert Image Type 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by