Borrar filtros
Borrar filtros

Matlab program lines need explanation

2 visualizaciones (últimos 30 días)
Abinaya
Abinaya el 6 de Feb. de 2014
Editada: Walter Roberson el 6 de Feb. de 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.

Respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by