release memory in resized and loaded
This commit is contained in:
parent
b17840c8de
commit
c646be9534
|
@ -33,6 +33,8 @@ Mat Image::loadImage (string& image_path, uint64_t& x, uint64_t& y, uint64_t& w,
|
|||
#else
|
||||
cvtColor(image, image, CV_BGR2RGB);
|
||||
#endif
|
||||
loaded.release();
|
||||
resized.release();
|
||||
}
|
||||
return image;
|
||||
}
|
Loading…
Reference in New Issue