필터 지우기
필터 지우기

How to retrieve multiple images from a database?

조회 수: 3 (최근 30일)
kiran paul
kiran paul 2014년 3월 6일
댓글: kiran paul 2014년 5월 12일
I am working on CBIR and m able to retrieve the output of one image now i want it to retrieve multiple images. Here, in this m comparing the features color and texture of query and database image to retrieve one image output using euclidean distance. When using this for multiple the same image is retrieved. Can anyone help me on this??

채택된 답변

Xylo
Xylo 2014년 3월 6일
You can do this easily..... before doing this program, you have to keep all of your image in a folder and rename them by any common char+number concatenation form (like a1.jpg, a2.jpg,a3.jpg....). after that you just use strcat() function for reading the path name, and then read the images.
%%%%%%%%%%%%%%%%%%%%%
for i=1:10 %suppose there are 10 image
im=imread(strcat('J:\multimedia\photo\a',strcat(i),'.jpg'));
imtool(im);
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %the below code is for different image name
folder_name=dir(strcat('J:\multimedia\photo\')); % the path tht u hv imges
no_of_content=size(folder_name);
no_of_images=no_of_content(1,1)-3;
for i=1:no_of_images
im=imread(strcat('J:\multimedia\photo\',folder_name(i+3).name));
imtool(im);
end
  댓글 수: 1
kiran paul
kiran paul 2014년 5월 12일
Reading is fine but the retrieved images are not similar as if i am retrieving for an image with flower. retrieved images are not of flowers but of something else.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by