Error executing template_matching

Hi, I am experiencing a simple error, yet I was not able to find the solution. I have 2 images (say a and b) image 'b' is a part or croped part of a. I wanted to use template matching command to this image.. Hence my code goes like this
>> a = imread('2.jpg'); >> b = imread('crop.jpg'); >> [I_SSD,I_NCC]=template_matching(b,a);
but I am currently experiencing the following errors.
Out of memory. The likely cause is an infinite recursion within the program.
Error in imjpginfo (line 28) [info,exif_offset, idx] = imjpgbaselineinfo(fid);
Please resolve my problem
Thanks in advance.

Risposte (0)

Questa domanda è chiusa.

Richiesto:

il 26 Lug 2016

Chiuso:

il 20 Ago 2021

Community Treasure Hunt

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

Start Hunting!

Translated by