prepare the opencv bundle adjusment