Doubt on HoughLinesProbabilistic function

asked 2017-01-10 15:00:45 -0500

giubacchio gravatar image

updated 2017-01-16 03:38:11 -0500

Hi all!

I was looking to the code of the HoughLinesProbabilistic function in the hough.cpp file, and I found something strange to me.

What makes me doubting is the part in which the accumulator is decremented after a "good_line" has been found (line 633 - 641): in fact while only a fraction of its pixels took part to the voting in the accumulator, it seems that all of his pixels take part in decrementing the same accumulator.

I'm not sure whether this is the correct place where talking about that, but I was not sure about reporting an issue on github either.

Thanks, Giulio

edit retag flag offensive close merge delete

Comments

Have you tried to compare the results between the original and your fixed version?

Eduardo gravatar imageEduardo ( 2017-01-16 06:19:04 -0500 )edit

Not yet, since I was thinking that probably the opencv implementation should be correct, and I was looking for my mistake.. Anyway, since nobody replied me, I could try to do it!

giubacchio gravatar imagegiubacchio ( 2017-01-16 10:36:02 -0500 )edit