Hi guys,
I'm just beginning to use Ceres. I have successfully installed Ceres and tried some examples. Then I try to follow the tutorial Using Ceres with Cmake.
In my project folder, there are 3 files: CMakeLists.txt, simple_bundle_adjuster.cc (copied from Ceres), problem-16-22106-pre.txt (Copied form Ceres)
The CMakeLists.txt :
cmake_minimum_required(VERSION 2.8)
project(simpe_ba)
find_package(Ceres REQUIRED)
include_directories(${CERES_INCLUDE_DIRS})
#
add_executable(simple_ba helloworld.cc)
target_link_libraries(helloworld ${CERES_LIBRARIES})
But it runs very slow :
It takes 60s to evaluate the Jacobian( When I tried this example in Ceres, it only takes about 0.4s). I can't figure out why this becomes such slow, I guess my CMakeLists.txt is just too simple, but i don't know how to improve it.
Thanks in advance.
Tan.