【问题标题】:Plotting Hough Transform MATLAB绘制霍夫变换 MATLAB
【发布时间】:2018-03-29 19:24:57
【问题描述】:

我试图使用hough(edge_detected_image) 绘制霍夫变换。然后我使用以下命令:

imshow(h,[],'XData',theta,'YData',rho,'InitialMagnification','fit');
 axis on
 axis normal
 hold on

但我得到的情节是:

虽然我需要 之类的东西

如何做到这一点?有什么需要做的设置吗?

【问题讨论】:

    标签: matlab image-processing hough-transform


    【解决方案1】:

    您需要更改颜色图。此外,您可能希望重新调整数据以使其符合可接受的范围。在显示之前在输出累加器矩阵上使用imadjust。您将需要更改累加器矩阵的值,以便对其进行归一化。只需除以 h 的最大值即可。

    您图中使用的颜色图是hot 颜色图,因此:

    imshow(imadjust(h / max(h(:))),'XData',theta,'YData',rho,'InitialMagnification','fit');
    axis on; axis normal; hold on
    colormap(gca,hot);
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-26
      • 1970-01-01
      • 2013-03-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多