fixes in bundle adjustment code by Nils Hasler
fix the crash when calling dft
Merge pull request #730 from vpisarev:ba_fix
Merge pull request #731 from bitwangyaoyao:2.4_fixDft