Image Retrieval

조회 수: 5 (최근 30일)
Padma
Padma 2011년 9월 13일
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.

채택된 답변

Walter Roberson
Walter Roberson 2011년 9월 13일
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
Padma
Padma 2011년 9월 14일
thanks alot!!!!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by