кусок лога
2021-12-06 16:52:18.5765 Fatal System.Exception: OpenCV: Failed to allocate 31581496 bytes
---> Emgu.CV.Util.CvException: OpenCV: Failed to allocate 31581496 bytes
at Emgu.CV.CvInvoke.cveMatchTemplate(IntPtr image, IntPtr templ, IntPtr result, TemplateMatchingType method, IntPtr...