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.

Answers (0)

This question is closed.

Asked:

on 26 Jul 2016

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!