跪求Hough变换检测直线的MATLAB源代码
来源:学生作业帮 编辑:神马作文网作业帮 分类:综合作业 时间:2024/10/01 21:40:57
跪求Hough变换检测直线的MATLAB源代码
如题,要能直接运行,
如题,要能直接运行,
直接运行:
RGB = imread('gantrycrane.png');
I = rgb2gray(RGB); % convert to intensity
BW = edge(I,'canny'); % extract edges
[H,T,R] = hough(BW,'RhoResolution',0.5,'ThetaResolution',0.5);
% display the original image
subplot(2,1,1);
imshow(RGB);
title('gantrycrane.png');
% display the hough matrix
subplot(2,1,2);
imshow(imadjust(mat2gray(H)),'XData',T,'YData',R,...
'InitialMagnification','fit');
title('Hough transform of gantrycrane.png');
xlabel('\theta'),ylabel('\rho');
axis on,axis normal,hold on;
colormap(hot);
RGB = imread('gantrycrane.png');
I = rgb2gray(RGB); % convert to intensity
BW = edge(I,'canny'); % extract edges
[H,T,R] = hough(BW,'RhoResolution',0.5,'ThetaResolution',0.5);
% display the original image
subplot(2,1,1);
imshow(RGB);
title('gantrycrane.png');
% display the hough matrix
subplot(2,1,2);
imshow(imadjust(mat2gray(H)),'XData',T,'YData',R,...
'InitialMagnification','fit');
title('Hough transform of gantrycrane.png');
xlabel('\theta'),ylabel('\rho');
axis on,axis normal,hold on;
colormap(hot);
简单的matlab手势识别中,用hough变换检测出直线条数,然后如何判断有几类直线也就是手指数目?
求hough变换问题如何利用hough变换求解变换后的图形的特性,比如圆形经过摄像投影变成椭圆,如何求出圆心在变换后的坐
求MATLAB GUI 环境下 图像处理图像的平移,任意角度的旋转,缩放和翻转,仿射变换等的源代码
matlab数学表达式的源代码怎么写
求用matlab绘制灰度图像的三维立体图的源代码?
用QR方法在MATLAB上求矩阵A=[5 -3 2;6 -4 4;4 -4 5]的特征值跪求源代码啊
matlab中函数源代码
matlab应用例子源代码
能给我MATLAB样本熵的源代码
矩形排样问题 基于遗传算法的 matlab源代码
MATLAB的DCT变换
求一道free pascal题目的源代码