Hey guys I have an issue with my opencv 2.3.0
All I am trying to do is extract SIFT features from an image I have downloaded. Now the image is very large (around 120MB) 6124w X 7636h PNG
and the error I see is:
OpenCV Error: Insufficient memory (Failed to allocate 748205824 bytes) in OutOfMemoryError, file /home/ros/Desktop/OpenCV-2.3.0/modules/core/src/alloc.cpp, line 52
terminate called after throwing an instance of 'cv::Exception'
what(): /home/ros/Desktop/OpenCV-2.3.0/modules/core/src/alloc.cpp:52: error: (-4) Failed to allocate 748205824 bytes in function OutOfMemoryError
Now I know that the error occures when this line is called .
cv::FeatureDetector * siftfeaturedetector = new cv::SiftFeatureDetector( siftLevel_, 10.0, 4,3,-1,0 );
siftfeaturedetector->detect(imgMat, keypts); // HERE
So I am wondering(because I have read some solutions saying to compile with 64bit) how to solve this using a 32 bit linux VM. Also a side note I have 4 GB of memory so the 750MB shouldn't be a problem.
ALSO if you know why its taking 750MBs and not something closer to 120MB I would love to know why that is the case as well :)