I want to compare a given input image from a set of images and display the corresponding image
显示 更早的评论
%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
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Read, Write, and Modify Image 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!