Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 4615

Hello trying to create a cv::Mat() got Insufficient memory

$
0
0
This is what i have: rows = 9208 cols = 15152 cv::Mat img_masked = cv::Mat(sourceImage.rows, sourceImage.cols, sourceImage.type()); Error: OpenCV Error: Insufficient memory (Failed to allocate 418558848 bytes) in cv::OutOfMemoryError, file C:\builds\master_PackSlave-win32-vc11-shared\opencv\modules\core\src\alloc.cpp, line 52 OpenCV Error: Assertion failed (u != 0) in cv::Mat::create, file C:\builds\master_PackSlave-win32-vc11-shared\opencv\modules\core\src\matrix.cpp, line 411 Do you know why? Or how I can do differently?

Viewing all articles
Browse latest Browse all 4615


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>