Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. [hough,theta,rho] = hough(negfillHoles,'Theta',-90:1:89,'RhoResolution',2);
  2. lenHough=length(hough(:));
  3. maxpeaks=lenHough; %10000;
  4. peaks = houghpeaks(hough,maxpeaks,'threshold',20); %50
  5. x=theta(peaks(:,2));
  6. y=rho(peaks(:,1));
  7. plot(x,y,'o','color','r');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement