Hough Transform degree calculated from which angle?

asked 2014-10-16 02:24:04 -0500

zms gravatar image

Hello expert, I'm still curious where the degree for the houghtransformP function start? I had debugged my code and got funny answer

All the while I thought the degree will start from top corner (0,0) coordinate and clockwise direction, but eventually when I execute my code, looks like it is not from top corner(0,0) using C++ opencv but it is look like the degree start from 0 degree lower left corner anti clock wise direction.

Please help to enlighten me on this. Quite confusing with the result

edit retag flag offensive close merge delete

Comments

It is done by using the Hough theory approach which is like this which is indeed counter clockwise compared to a horizontal line.

StevenPuttemans gravatar imageStevenPuttemans ( 2014-10-16 03:33:55 -0500 )edit
1

Ok that make sense now.. means that it does not follow the image processing method like from the top left (0,0) and the degree increase clockwise direction. So it is true right?

zms gravatar imagezms ( 2014-10-16 04:33:54 -0500 )edit
1

Yep that is it!

StevenPuttemans gravatar imageStevenPuttemans ( 2014-10-16 05:44:18 -0500 )edit