I want to compare a given input image from a set of images and display the corresponding image
Show older comments
%function imgDB()
img=imread('1.jpg');
a=['1.jpg','2.jpg','3.jpg','4.jpg','5.jpg'];
for i=1:size(a)
if (img==a(i))
disp('YES');
else
disp('NO')
break
end
end
Accepted Answer
More Answers (0)
Categories
Find more on Image Arithmetic in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!