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