robwhess / opensift

Open-Source SIFT Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Insufficient memory

dorad100 opened this issue · comments

I use the siftfeat function of OpenSIFT, but I get an Insufficient memory Exception.
Is this a known Issue?

The Picture I use is 5,6 MB (5647400 Bytes) and 7110x5427 pixel in size.
Try it with this, for example:
http://eoimages.gsfc.nasa.gov/images/imagerecords/80000/80258/kilauea_wv2_2011135_lrg.jpg
The RAM is 8GB (Exception when 4GB are used).
The OS is mint Linux 64bit.

I'm pretty sure there are no memory leaks in OpenSIFT, unless one was introduced in OpenCV. That's a pretty large image, and it probably produces a ton of keypoints. This may simply be a case of your machine not having enough memory to run that size image (remember, the image also gets doubled in both dimensions as part of the normal SIFT algorithm before constructing the scale space pyramid).

It's hard to say anything more with the information you've given me. Maybe have a look at the stack trace when execution fails so we can have an idea what the program was doing when it ran out of memory. Also, maybe run it through valgrind to see if any memory problems exist.

Solved, much more RAM did the job.