基于matlab程序hough变换检测圆源码
Posted fpga&matlab
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了基于matlab程序hough变换检测圆源码相关的知识,希望对你有一定的参考价值。
1.算法简介
基于matlab程序hough变换检测圆源码
2.部分核心代码
rawimg = imread('test1.bmp');
tic;
[accum, circen, cirrad] = CircularHough_Grd(rawimg, [15 60]);
toc;
%figure(1); imagesc(accum); axis image;
%title('Accumulation Array from Circular Hough Transform');
figure(2); imagesc(rawimg); colormap('gray'); axis image;
hold on;
plot(circen(:,1), circen(:,2), 'r+');
for k = 1 : size(circen, 1),
DrawCircle(circen(k,1), circen(k,2), cirrad(k), 32, 'b-');
end
hold off;
title(['Raw Image with Circles Detected ', ...
'(center positions and radii marked)']);
figure(3); surf(accum, 'EdgeColor', 'none'); axis ij;
title('3-D View of the Accumulation Array');
% COMMENTS ON EXAMPLE #0:
% Kind of an easy case to handle. To detect circles in the image whose
% radii range from 15 to 60. Default values for arguments 'grdthres',
% 'fltr4LM_R', 'multirad' and 'fltr4accum' are used.
%
3.仿真截图与仿真视频演示
视屏演示
4.相关参考文献
[1]王诗旋, 贺新升, 张荣辉,等. 基于Matlab和优化Hough变换的高速公路车道线检测方法[J]. 科技资讯, 2011.
D197
以上是关于基于matlab程序hough变换检测圆源码的主要内容,如果未能解决你的问题,请参考以下文章
Hough变换检测圆(附:MATLAB程序) - mhjerry的专栏(子水) - 博客频道 - CSDN.NET
基于hough霍夫变换的铁栏栅断裂处的检测算法matlab仿真
Hough 变换检测圆----Matlab实现(以虹膜检测为例)
车道线识别基于matlab hough变换道路检测直线检测含Matlab源码 2074期