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.
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.