嘿,我在试着匹配两个位图,其中的ConvertedTo24bpp。但是它运行到一个无穷无尽的循环,它永远不会结束加工过程。节目在60秒后停止。
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));发布于 2018-12-06 19:39:08
我把它修好了,问题是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);https://stackoverflow.com/questions/53622336
复制相似问题