Imread Image using pwd?

조회 수: 2 (최근 30일)
Oman Wisni
Oman Wisni 2019년 1월 16일
댓글: Oman Wisni 2019년 1월 17일
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
Walter Roberson
Walter Roberson 2019년 1월 16일
see uigetfile
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