Maximum recursion limit of 500 reached. Use set(0,'Rec​ursionLimi​t',N) to change the limit. Be aware that exceeding your available stack space can crash MATLAB and/or your computer."

1 view (last 30 days)
Maximum recursion limit of 500 reached. Use set(0,'RecursionLimit',N)
to change the limit. Be aware that exceeding your available stack space can
crash MATLAB and/or your computer."
This is the code
img = imread('coins.png');
imshow(img);
I=im2bw(img);
imgBW = edge(I);
rad = 24;
[y0detect,x0detect,Accumulator] = houghcircle(imgBW,rad,rad*pi);
figure;
imshow(imgBW);
hold on;
plot(x0detect(:),y0detect(:),'x','LineWidth',2,'Color','yellow');
figure;
imagesc(Accumulator);

Answers (1)

Walter Roberson
Walter Roberson on 19 Jan 2012
What filename did you use for the above code? And which line does MATLAB indicate was executing at the time of the error?

Categories

Find more on Shifting and Sorting Matrices in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!