You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Details:
There's a noticeable memory leak with the "Image<TColor, TDepth>.Resize" method. The leak isn't as bad when using the "Emgu.CV.CvInvoke.Resize" method but it's still present. I've tested this with images of varying sizes; however, it's exacerbated when using a larger image and larger scale. The example below is running against an image at resolution 1920x1080.
A review in the source code of "Image<TColor, TDepth>.Resize" function from 3.2 release doesn't seem to indicate any managed memory leak from the C# code:
public Image<TColor, TDepth> Resize(int width, int height, CvEnum.Inter interpolationType)
{
Image<TColor, TDepth> imgScale = new Image<TColor, TDepth>(width, height);
CvInvoke.Resize(this, imgScale, new Size(width, height), 0, 0, interpolationType);
return imgScale;
}
If the memory leaks comes from the native (C++) Open CV code, it will need to be fixed from the Open CV side.
EmguCV version: 3.1.0.2504
Similar issue:
http://answers.opencv.org/question/93006/resize-memory-leak-minor/
Details:
There's a noticeable memory leak with the "Image<TColor, TDepth>.Resize" method. The leak isn't as bad when using the "Emgu.CV.CvInvoke.Resize" method but it's still present. I've tested this with images of varying sizes; however, it's exacerbated when using a larger image and larger scale. The example below is running against an image at resolution 1920x1080.
I am monitoring the Private Byte growth using Process Explorer's Performance Graph.
https://technet.microsoft.com/en-us/sysinternals/processexplorer.aspx
Setup:
Function:
The text was updated successfully, but these errors were encountered: