Detecting multiple images in a single image

后端 未结 6 1654
滥情空心
滥情空心 2021-01-30 21:39

I need help to identify the border and compare the images with the original image. I need guidance on How can I achieve this through processing or matlab or anything for beginne

6条回答
  •  情书的邮戳
    2021-01-30 22:07

    You can simplify the process proposed by @lennon310 using the normxcorr2 function:

    file1='http://i.stack.imgur.com/1KyJA.jpg';
    file2='http://i.stack.imgur.com/zyHuj.jpg';
    It = imread(file1);
    Ii = imread(file2);
    It=rgb2gray(It);
    Ii=rgb2gray(Ii);
    It=double(It);  % template
    Ii=double(Ii);  % image
    
    c=normxcorr2(It, Ii);
    imagesc(c); 
    

提交回复
热议问题