大家好,又见面了,我是你们的朋友全栈君。...即直线 y = k ∗ x + b y=k*x+b y=k∗x+b转换到极坐标系空间 ρ = x c o s θ + y s i n θ \rho=xcos\theta+ysin\theta ρ=xcosθ...比如,像素点 ( x , y ) (x,y) (x,y)代表构成边缘的一个像素点,遍历 θ \theta θ,根据公式 ρ = x c o s θ + y s i n θ \rho=xcos\theta...+ysin\theta ρ=xcosθ+ysinθ我们可以计算出所有经过点 ( x , y ) (x,y) (x,y)的直线信息。...% 绘制hough变换的图
'YData', R, 'InitialMagnification', 'fit'),title('hough image');
xlabel('\theta'), ylabel