Page MenuHomePhabricator

Memory leaks using GetOpenCVMat()
Closed, ResolvedPublic

Description

When using the function "ImageToOpenCVImageFilter::GetOpenCVMat()" a memory leak was happening, leading to increase the memory usage of MITK, and crashing consequently after a while.

The old "IplImage" pointer of OpenCv was replaced for the newer "cv::Mat" class and the issue was solved. The method "ImageToOpenCVImageFilter::ItkImageProcessing" was also modified to be used with a cv::Mat input.

Event Timeline

eisenman added a subscriber: eisenman.

Changing the return type of ImageToOpenCVImageFilter::GetOpenCVImage() leads to a compiler error in test method "ConvertIplImageForthAndBack" of test driver "mitkOpenCVMitkConversionTest".

eisenman triaged this task as High priority.
eisenman moved this task from Backlog to In Progress on the IGT board.