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일

1 개 추천

projectdir = pwd;
for K = 1 : 10
basename = sprintf('subject_%05d_sagital.bmp', K);
fullname = fullfile(projectdir, basename);
im = imread(fullname);
end

댓글 수: 3

this get error sir,
error using imread.
File "D:subjecy_00001_sagital.bmp" does not exist.
I mean, without create specific folder and specific name of image. after run can choose image
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개)

카테고리

도움말 센터File Exchange에서 Convert Image Type에 대해 자세히 알아보기

질문:

2019년 1월 16일

댓글:

2019년 1월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by