Filter löschen
Filter löschen

comparision of database images

1 Ansicht (letzte 30 Tage)
Sajja Tulasi Krishna
Sajja Tulasi Krishna am 29 Dez. 2017
Bearbeitet: KALYAN ACHARJYA am 29 Dez. 2017
I have folder name database and under this 400 images are there,they are named as s1_1,s1_2......s1_10 then s2_1,s2_2....s2_10 so on upto s40_1,s40_2....s40_10 . I would like to compare each image with other 399 images.Those folder contains the extracted images using SIFT features. I tried but could not come up with an efficient code. So, could someone please suggest me an idea or code at least how to read those images.

Antworten (1)

KALYAN ACHARJYA
KALYAN ACHARJYA am 29 Dez. 2017
Bearbeitet: KALYAN ACHARJYA am 29 Dez. 2017
% Please save all images name in symmetrically before doing the operation
% names for example im1,im2,im3...
% Pls ensure both folder images having equal numbers of images to compare one by one
%Save the folder of images in the current directory
path_directory='optha_original'; % 'Folder name'
% Pls note the format of images,change it as required
original_files=dir([path_directory '/*.jpg']);
l=1;
for k=1:length(original_files)
filename=[path_directory '/' original_files(k).name];
image_orginal=imread(filename);
% Image read is done
%%Following code for Image Call
images_call='images1'; % 'Folder name'
call_files=dir([images_call '/*.gif']); % Alert: Image format
filename=[images_call '/' call_files(l).name];
l=l+1; % This increment for next call images
call_image=imread(filename);
% Now you have two images image_orinal>original image
% and call_image> call image for compare
% Next do your operation and finding
end

Kategorien

Mehr zu MATLAB Report Generator finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by