2017-04-10 07:26:14 -0600 | commented answer | How to implement the imshowCompare() function without memory leak? Thank you very much, but imshowCompare function will be used frequently, this is too cumbersome. |
2017-03-28 00:25:04 -0600 | commented question | How to implement the imshowCompare() function without memory leak? Yes, we can pass the pointer, and then manually release it. The bad thing is that it's easy to forget to release. Change raw pointer to smart pointer may solve this problem. But pass a pointer was also verbosely. Hope to have the simple calling way like imshowCompare("winname", src, dst). |
2017-03-27 03:08:16 -0600 | asked a question | How to implement the imshowCompare() function without memory leak? I implemented the imshowCompare() function that switch the output and the original image by the left mouse button click in cv::imshow windows. This is a very useful function for testing. The code is as follows, but can not solve the problem of memory leak. |