When I try to use the function rgb2gray, I get the following error message:
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.
What is causing this error??
My code is:
>> I=imread('\\psf\Home\Desktop\Coin project\dbImages2\fotos 21 sep 5R\Sample_2015-08-12 15.39.08.221.jpg');>> I2=rgb2gray(I);Maximum recursion limit of 500 reached. Use set(0,'RecursionLimit',N) to change the limit. Be aware thatexceeding your available stack space can crash MATLAB and/or your computer.Error in rgb2grayThis happens only when I use the rgb2gray function
Thanks for your help
Best Answer