hough变换检测直线 matlab,求能够运行的用matlab进行hough变换直线检测的程序。急!...
滿意答案
love8047g
2013.05.15
采納率:43%????等級:13
已幫助:12527人
直接運行:
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);
05分享舉報
超強干貨來襲 云風專訪:近40年碼齡,通宵達旦的技術人生總結
以上是生活随笔為你收集整理的hough变换检测直线 matlab,求能够运行的用matlab进行hough变换直线检测的程序。急!...的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 张红英模型matlab,京师微课 | 北
- 下一篇: php中读取文件函数,php 读取文件夹