Hough transformation

26 ビュー (過去 30 日間)
Felipe
Felipe 2011 年 6 月 2 日
Hi! I have a problem with the function houghlines : it returns me an empty struct 1x1. Moreover : do you know how to transform the struct in a list of equations of the lines ?? Thank you very much
imm = [0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0, 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0, 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0, 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0, 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0, 0 0 0 0 1 1 0 0 0 1 1 1 0 0 0 0, 1 1 1 1 0 0 1 1 1 0 0 0 1 1 1 1, 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0, 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0, 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0, 0 0 0 0 0 0 1 1 1 1 1 0 0 0 0 0, 0 0 0 0 0 0 0 0 1 0 0 1 1 1 0 0, 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 1, 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0, 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0, 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0];
imshow (imm);
[H, THETA, RHO] = hough(imm);
picchi = houghpeaks(H,50
linee = houghlines(imm, THETA, RHO, picchi);

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by