Ask Your Question
0

HoughLine parameter

asked 2017-01-26 02:07:53 -0600

testo gravatar image

I want to use houghline to detect lines in image. I read the concept of houghline in openCV website

According to this api call HoughLines(InputArray image, OutputArray lines, double rho, double theta, int threshold, double srn=0, double stn=0 ) and this explanation rho – Distance resolution of the accumulator in pixels. theta – Angle resolution of the accumulator in radians.

I still conduse what is rho and theta in parameter do. Isn't the result of houghLines, OutputArray lines, defined in term of rho, theta?

Could you explain a purpose of rho and theta in parameter?

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2017-01-26 03:25:32 -0600

00Zetti gravatar image

In short: As you should know, the Houghtransformation maps your input image from spatial domain into the Houghspace. You do this with a certain resolution(rho, theta), let's say your accuracy: e.g. you can map your pixels from spatial domain into Houghspace with a stepsize, that defines how often you should change the angle to observe and map the pixels into Houghspace. The smaller the stepsize the more dense your Houghspace will become. Hope that helps you to understand the parameters and the transformation.

edit flag offensive delete link more

Comments

Thank you very much. That answer my question.

testo gravatar imagetesto ( 2017-01-26 23:33:24 -0600 )edit
0

answered 2017-01-26 02:29:30 -0600

LBerger gravatar image

there is a good tutorial here

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-01-26 02:07:53 -0600

Seen: 2,334 times

Last updated: Jan 26 '17