To convert Hough lines to Hessian normal form in Matlab, you can follow these steps:
r = x*sin(theta) - y*cos(theta)
, where r
is the perpendicular distance from the origin to the line, and theta
is the angle the perpendicular makes with the positive x-axis.Here is some sample code to implement these steps in Matlab:
main.m564 chars19 lines
gistlibby LogSnag