Image Retrieval

4 visualizaciones (últimos 30 días)
Padma
Padma el 13 de Sept. de 2011
I'm using the following method to create a database of images: im=dir('C:\CBIR\New Folder\*.png') thus all the .png format images in the mentioned directory in my computer are stored in "im" but i cannot use a for loop and retrieve a single image and perform functions like imread or imshow. pls help.

Respuesta aceptada

Walter Roberson
Walter Roberson el 13 de Sept. de 2011
for K = 1 : length(im)
IMG = imread(['C:\CBIR\New Folder\' im(K).name]);
figure
imshow(IMG)
end
Notice that the name returned by dir() does not include any directory information.
  1 comentario
Padma
Padma el 14 de Sept. de 2011
thanks alot!!!!

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by