Unfortunately the bug posted on 13 Jun 2005 is still present and a real one, without this fix one will only find half the hough space. Further the improvement suggested on 30 Aug 2007 by Stijn Helsen does make a significant difference. I understand the original author might not be updating this anymore, it would be good if the community could take owner ship.
thank you for this code, but when i compile it i had some errors like :
line 45:elseif thresh < 3
error('threshold must be bigger than or equal to 3')
return;% error :this statement cannot be reached
end
line 76 77 :
pdetect = [];tetadetect = [];
for cnt = 1:length(Potential_p)
if Accumulatortemp(Potential_p(cnt),Potential_teta(cnt)) >= 0
%error: the variable 'pdetect' appears to change size on every lop iteration(same error for 'tetadetect')
pdetect = [pdetect;Potential_p(cnt)];
tetadetect = [tetadetect;Potential_teta(cnt)];
end
end