[英]Accord.net TemplateMatch[]
Hey Iam trying to match 2 bitmaps which ConvertedTo24bpp.嘿,我正在尝试匹配 ConvertedTo24bpp 的 2 个位图。 But its running in to a endless loop it never ends the machting process.
但是它进入了一个无限循环,它永远不会结束这个过程。 The programm stops after 60secs.
程序在 60 秒后停止。
http://accord-framework.net/docs/html/T_Accord_Imaging_ExhaustiveTemplateMatching.htm 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));
I fixed it the problem was the ResizeBilinear Class.我修复了它的问题是 ResizeBilinear 类。 Iam using this before I templateMatch and it works.
我在使用 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);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.