Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SIFT,detectAndCompute,Memory leak #22152

Open
wang002 opened this issue Jun 24, 2022 · 1 comment
Open

SIFT,detectAndCompute,Memory leak #22152

wang002 opened this issue Jun 24, 2022 · 1 comment

Comments

@wang002
Copy link

wang002 commented Jun 24, 2022

System information (version)
  • OpenCV == 4.5.1 or OpenCV == 4.5.5(debug)
  • Operating System / Platform => Ubuntu 20.04.4 LTS (GNU/Linux 5.13.0-41-generic x86_64)
  • Compiler => QT5.15.2
Detailed [description]

SIFT,detectAndCompute,Memory leak。
Image size is 2844*1280.channel=3。
Run the program for two hours,Memory increased from 200MB to 1000MB。

Steps to reproduce
cv::Mat Img=cv::imread("19.jpg");
cv::resize(Img,Img,cv::Size(),0.5,0.5);
while (1)
{
     cv::Ptr<cv::SIFT> ptrDetector=cv::SIFT::create();
     std::vector<cv::KeyPoint> KeyPts;
     cv::Mat Descriptor;
     ptrDetector->detectAndCompute(Img, cv::Mat(), KeyPts, Descriptor);
}
@Ebdulmomen1
Copy link

Did you find what caused the problem or what fixed it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants