【问题标题】:How to construct the superpixel boundaries on the original image?如何在原始图像上构建超像素边界?
【发布时间】:2019-05-17 02:04:53
【问题描述】:

我对特定图像执行了超像素分割。我手中的是原始的 RGB 图像和标记的图像轮廓。如何在图像中绘制超像素?

【问题讨论】:

    标签: matlab superpixels


    【解决方案1】:

    解决方案写在MATLAB documentation。相关部分是:

    将图像读入工作区。

    A = imread('kobi.png');
    

    计算图像的超像素。

    [L,N] = superpixels(A,500);
    

    显示覆盖在原始图像上的超像素边界。

    figure
    BW = boundarymask(L);
    imshow(imoverlay(A,BW,'cyan'),'InitialMagnification',67)
    

    【讨论】:

      猜你喜欢
      • 2019-09-19
      • 2021-09-14
      • 2020-05-03
      • 1970-01-01
      • 2017-05-22
      • 2015-07-12
      • 2021-01-26
      • 1970-01-01
      • 2014-05-01
      相关资源
      最近更新 更多