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.

Respuestas (0)

La pregunta está cerrada.

Preguntada:

el 26 de Jul. de 2016

Cerrada:

el 20 de Ag. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by