Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV Error: OutOfMemoryError: Insufficient memory (Failed to allocate 522777092 bytes)

Please help on below exception:

//CODE Mat training_descriptors(1,extractor->descriptorSize(),extractor->descriptorType()); //Extract descriptor //BELOW is the error line after almost 2500 image descriptor loaded training_descriptors.push_back(descriptors);

OpenCV Error: Insufficient memory (Failed to allocate 522777092 bytes) in OutOfMemoryError, file /tmp/pkg/OpenCV-2.4.1/modules/core/src/alloc.cpp, line 52

click to hide/show revision 2
No.2 Revision

OpenCV Error: OutOfMemoryError: Insufficient memory (Failed to allocate 522777092 bytes)OutOfMemoryError while training_descriptors

Please help on below exception:with the exception below:

//CODE
Mat training_descriptors(1,extractor->descriptorSize(),extractor->descriptorType());
//Extract descriptor
//BELOW is the error line after almost 2500 image descriptor loaded
training_descriptors.push_back(descriptors);training_descriptors.push_back(descriptors);

Exception:

OpenCV Error: Insufficient memory (Failed to allocate 522777092 bytes) in OutOfMemoryError, file /tmp/pkg/OpenCV-2.4.1/modules/core/src/alloc.cpp, line 52 

52