Hi,
I am using Ceres for direct method bundle adjustment. When I learn from the tutorials, I have a question:
For each observation, a cost function is allocated on the heap by the "new" operator. I am wondering if it is not efficient to allocate memory for each observation?
For example, if I have millions of observations, it might be very slow to allocate millions of cost functions on the heap and then add them to Ceres Problem.
Is there any good solution for direct method bundle adjustment?
My idea is to integrate all observations on the same keyframe as one residual block. Is it possible?