Matlab program lines need explanation

1 view (last 30 days)
Abinaya
Abinaya on 6 Feb 2014
Edited: Walter Roberson on 6 Feb 2014
Peaks = houghpeaks(H,40,'threshold',ceil(0.3*max(H(:))));
x = theta(Peaks(:,2));
y = rho(Peaks(:,1));
plot(x,y,'s','color','black');
lines = houghlines(BW,theta,rho,Peaks,'FillGap',5,'MinLength',7);
imshow(I); hold on;
max_len = 0;
minlinelen = 15;
for k = 1:length(lines)
len = norm(lines(k).point1 - lines(k).point2);
if (len > minlinelen)
xy = [lines(k).point1; lines(k).point2];
plot(xy(:,1),xy(:,2),'LineWidth',2,'Color','green');
Can anyone kindly explain me this coding????It may be easy one.,,I guess.. Advanced thanks to all.

Answers (0)

Categories

Find more on Images in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!