During optimization using ceres, the Eigen types need to templated by Jet. However currently camera function can only take in `float`.