I have image processing toolbox 8.3 but still "imfindcircles" don't work. What can I do ?

I need to detect circles in real time video for my project.
But every time I am trying to run "imfindcircles" function on my PC, I have encountered the following error. I have tried MATLAB 2012a, 2012b & 2013a for only this function but no result.
Even the example in the MATLAB help don't run!.
The error is:
Undefined function 'chaccum' for input arguments of type 'double'.
Error in imfindcircles (line 170) [accumMatrix, gradientImg] = chaccum(A, radiusRange, 'Method',method,'ObjectPolarity', ...
Please help me out

2 Comments

The problem seems to come from the function 'chaccum'?
But there is nothing named "chaccum". Even I have not found anything on google on 'chaccum'

Sign in to comment.

 Accepted Answer

Try which:
>> which -all chaccum
C:\Program Files\MATLAB\R2014a\toolbox\images\images\private\chaccum.m % Private to images
What do you see when you do it?

6 Comments

When I enter the command "which -all chaccum" it shows
C:\Program Files\MATLAB\R2013b\toolbox\images\images\private\chaccum.m % Private to images
Now what to do ?
You call MATLAB because something's not right. You have "which" telling you the file is there but you have imfindcircles() telling you it's not there. So something got messed up somewhere in the installation.
I have installed MATLAB three times but no improvement. The simplest following code shows the error
im= imread('desired image directory and name');
im=rgb2gray(im);
im=edge(im,'canny',[.1 .35]); % finding edge using canny edge detector
[cen rad]=imfindcircles(im,[30 80]); % the radius is expected between 30 to 80.
This produces no error whatsoever for me:
im= imread('peppers.png');
im=rgb2gray(im);
im=edge(im,'canny',[.1 .35]); % finding edge using canny edge detector
[cen rad]=imfindcircles(im,[30 80]); % the radius is expected between 30 to 80.
So, you're going to have to call them.
Thank you for your help. Somehow the error got fixed automatically.
for me it shows 'chaccum' not found. how to avoid this problem

Sign in to comment.

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!