[英]Accord.net TemplateMatch[]
嘿,我正在嘗試匹配 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));
我修復了它的問題是 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);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.