Closed haf closed 6 years ago
Well...
Please accept my deep apologies for not having been able to answer this question earlier. In fact, the output of the Hough Transform is correct. It is not that it is corrupting the image, it's just that the set of lines shown at the bottom are really the output of the Hough Transform, e.g. check this image from Wikipedia:
If you would like to draw the lines that can be found by the Hough Transform into the original image, please take a look at the Hough Transform sample application. It should give an example on how it can be done.
Regards (and sorry again), Cesar
Better late than never, right?
I got code like this:
After apply canny:
After apply hough:
It seems the hough transformation somehow distorts the image... I noticed it's the only one that goes through unmanaged memory, perhaps that's the reason?