GUI for reading multiple images into MATLAB
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Karthik
el 22 de Jul. de 2015
Respondida: Azzi Abdelmalek
el 22 de Jul. de 2015
Hi, I am using the following code to load and read multiple images into matlab.
[FileNames,PathName] = uigetfile('*.bmp', 'Chose files to load:','MultiSelect','on');
nfiles = length(FileNames);
image_array = {nfiles};
for i = 1:nfiles
image = imread(FileNames(i));
image_array{i} = image;
end
But, its throwing an error at first line within the for loop. Can you let me know how to fix this ? Thanks.
2 comentarios
Respuesta aceptada
Azzi Abdelmalek
el 22 de Jul. de 2015
Use
file=fullfile(PathName,FileNames{i})
image = imread(file);
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Read, Write, and Modify Image en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!