0
hough_in = bwareaopen(bin_im(:,:,n),20);
% Compute the Hough transform of the image using the hough function
[H,T,R] = hough(hough_in);
P = houghpeaks(H,3,'threshold',ceil(0.3*max(H(:))));
x = T(P(:,2));
y = R(P(:,1));
lines = houghlines(hough_in,T,R,P,'FillGap',5,'MinLength',7);
x
和y
這裏代表什麼?Hough變換源代碼說明
,使用P爲什麼他們被編入索引? – anonymous
@anonymous,因爲P包含Hough數組中峯的座標。請閱讀文檔,它都在裏面...... – Piglet