Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Out of memory

Hello,

I am running opencv on a laptop, with 8Gb of RAM. Task manager claims over 5000Mb are available, but when i call.

cv::Mat AllTextures = cv::Mat::zeros(nSamples, nPixels, CV_64FC1);

OpenCV Error: Insufficient memory (Failed to allocate 4208608612 bytes) in cv::O utOfMemoryError, file C:\builds\2_4_PackSlave-win32-vc11-shared\opencv\modules\c ore\src\alloc.cpp, line 52

4208608612 = 3.91957 Gb

5181Mb = 5.05957Gb

image description

Any clues as to what is happening here?

Windows 7 Visual Studio 2012