Imread Image using pwd?

2 visualizaciones (últimos 30 días)
Oman Wisni
Oman Wisni el 16 de En. de 2019
Comentada: Oman Wisni el 17 de En. de 2019
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

Respuesta aceptada

Walter Roberson
Walter Roberson el 16 de En. de 2019
projectdir = pwd;
for K = 1 : 10
basename = sprintf('subject_%05d_sagital.bmp', K);
fullname = fullfile(projectdir, basename);
im = imread(fullname);
end
  3 comentarios
Walter Roberson
Walter Roberson el 16 de En. de 2019
see uigetfile
Oman Wisni
Oman Wisni el 17 de En. de 2019
Yes sir, I already got what I need for this. Thank you for the answer

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Convert Image Type en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by