Mrcreamio
Mrcreamio

Reputation: 103

Hough transformation calculation

hough transformation using the normal equation of a line.

For calculating the value of r while keeping the values of x and y same for different θ the following formula is used.

r = sin(θ)y + cos(θ)x

But the results are not the same as shown in the slides. Am I missing something? I am a newbie please be gentle.

enter image description here hough transformation

Upvotes: 1

Views: 1064

Answers (1)

Mrcreamio
Mrcreamio

Reputation: 103

As @Ash explained in the comment section above the angles are expected to be expressed in radians not degree.

So r = sin(θ*pi/180)y + cos(θ*pi/180)x will give the correct answer.

Upvotes: 1

Related Questions