how to manage memory consumption in Features2D + Homography
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?
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.. .
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...