【问题标题】:Accord.net TemplateMatch[]Accord.net 模板匹配[]
【发布时间】:2018-12-07 03:39:08
【问题描述】:

嘿,我正在尝试匹配 ConvertedTo24bpp 的 2 个位图。但是它运行到一个无限循环中,它永远不会结束匹配过程。程序在 60 秒后停止。

http://accord-framework.net/docs/html/T_Accord_Imaging_ExhaustiveTemplateMatching.htm

TemplateMatch[] templateMatcheArray = exhaustiveTemplateMatching.ProcessImage((new ResizeBilinear(bitmapGetImage.Width / scale, bitmapGetImage.Height / scale)).Apply(bitmapGetImage),
                (new ResizeBilinear(bitmapConverted.Width / scale, bitmapConverted.Height / scale)).Apply(bitmapConverted));

【问题讨论】:

  • 尝试搜索 nugget 库寻找替代方案
  • 我为 Accord.net 导入了掘金

标签: c# accord.net


【解决方案1】:

我修复了问题是 ResizeBilinear 类。我在 templateMatch 之前使用它,它可以工作。

ResizeBilinear resizeBilinear = new ResizeBilinear(200, 200);
        bitmapConverted = resizeBilinear.Apply(bitmapConverted);
        bitMapTemplate = resizeBilinear.Apply(bitMapTemplate);
        //comparing our to bmp
        TemplateMatch[] templateMatcheArray = exhaustiveTemplateMatching.ProcessImage(bitmapConverted, bitMapTemplate);

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-03-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多