【问题标题】:MSER features detection not working in matlabMSER 特征检测在 matlab 中不起作用
【发布时间】:2013-11-13 12:41:30
【问题描述】:

为什么每当我尝试在 matlab 中将detectSURFFeatures(img) 与二进制图像一起使用时会给我正确的分数,但每当我将detectMSERFeatures(img) 与相同的二进制图像一起使用时
都会给我错误而不是指向一些有效区域?

错误:

Error using detectMSERFeatures
Expected input number 1, I, to be one of these types:

uint8, int16, uint16, single, double
Instead its type was logical.

Error in detectMSERFeatures>parseInputs (line 75)
validateattributes(I,{'uint8', 'int16', 'uint16', ...

Error in detectMSERFeatures (line 64)
[Iu8, params] = parseInputs(I,varargin{:});

【问题讨论】:

    标签: matlab image-processing matlab-cvst mser


    【解决方案1】:

    试试这个: 首先使用 img=im2double(img); 使图像 2 翻倍 然后将其提供给 MSER detectMSERFeatures(img)

    【讨论】:

      【解决方案2】:

      detectMSERFeatures 不接受逻辑输入,如documentation 和您收到的错误中所述。 detectSURFFeatures 确实如此。我不知道是否有具体原因,因为我不熟悉不同算法的局限性。

      您可以简单地将二进制图像转换为列出的类型之一,然后在其上运行 MSER: detectMSERFeatures(double(img));

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2013-07-29
        • 2014-07-01
        • 2012-04-25
        • 2018-09-15
        • 2013-07-22
        • 1970-01-01
        相关资源
        最近更新 更多