Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [hough,theta,rho] = hough(negfillHoles,'Theta',-90:1:89,'RhoResolution',2);
- lenHough=length(hough(:));
- maxpeaks=lenHough; %10000;
- peaks = houghpeaks(hough,maxpeaks,'threshold',20); %50
- x=theta(peaks(:,2));
- y=rho(peaks(:,1));
- plot(x,y,'o','color','r');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement