how to manage memory consumption in Features2D + Homography

asked 2015-08-24 01:02:37 -0600

I used this link text but when SurfFeatureDetector detector( minHessian );
SurfDescriptorExtractor extractor;
get execute memory consumption get boosted to over 300 mb which, I want to control somehow in iPhone is there any workaround to manage this memory?

edit retag flag offensive close merge delete

Comments

On windows I have tested this program with image samples/data/box.png and /box_in_scene.png. i have got 786 and 1040 keyPoints. after Compute method I have got 118 Mo memory used. So memory used in your case is OK. If you want to decrease memory used you can increase hessian value. You will have less keypoints. may be you can try with another detector ORB BRISK.. .

LBerger gravatar imageLBerger ( 2015-08-24 09:09:17 -0600 )edit

ORB and BRISK are supposedly designed to run on low memory devices OR run faster on high end devices. They also are free of any patents whatsoever, contrary to SURF...

Doomb0t gravatar imageDoomb0t ( 2015-08-24 09:43:03 -0600 )edit