1

我在 Windows 7 64 位上使用 Matlab R2010a。

当我使用imfindcircles时,我得到了错误。

>> [centers, radii] = imfindcircles(image,[100 400],'ObjectPolarity','dark')
??? Undefined function or method 'imfindcircles' for input arguments of type
'uint8'.

我引用了一个有用的问题,发现我找不到imfindcircles函数。

>> which imfindcircles
'imfindcircles' not found.
>> help imfindcircles

imfindcircles not found.

Use the Help browser Search tab to search the documentation, or
type "help help" for help command options, such as help for methods.

我在我的电脑上找不到 imfindcircles.m。

编辑

我检查了MATLAB Image Processing Toolbox中的函数,发现imread.

>> which imread
C:\Program Files\MATLAB\R2010a\toolbox\matlab\imagesci\imread.m

我在 C:\Program Files\MATLAB\R2010a\toolbox\matlab\imagesci 和 C:\Program Files\MATLAB\R2010a\toolbox\images 中找到了一些函数,但我没有 imfindcircles.m。我应该在某处下载 imfindcircles.m 并将其放入目录中吗?

4

2 回答 2

3

你需要有工具箱版本。8.0 或更高版本以查找 imfindcircles。使用“ver”查找图像处理工具箱的安装版本

于 2013-04-21T06:10:17.213 回答
1

imfindcircles is part of the Image Processing toolbox. You need to have this toolbox and to have a valid license for it.

Did you check if you have any of the other functions in this toolbox?

于 2013-04-21T04:08:28.820 回答