Closed lzyplayer closed 1 year ago
@salahkhan94 Could you please share some insight about this?
I managed to solve it by defining a Ternary edge that links the camera intrinsic Vertex (VertexIntrinsics), camera pose Vertex (VertexSE3 or VertexSE3Expmap), and Observation Target (Vertex SE3 in my case, or VertexPointXYZ ). There will be only one VertexIntrinsics in the graph.
If you are looking for a ternary edge example, check edge_project_psi2uv.h. Thanks again for such great work.
Can you provide the Jacobian of the VertexSE3?
Some pre-defined edges, such as
EdgeProjectXYZ2UV, EdgeSE3ProjectXYZ
, are used during BA. However, they can only set unchangeable camera parameters. I'm wondering if I can set optimizable camera parameters.I found Vertex
VertexIntrinsics
ing2o/types/sba/vertex_intrinsics.h
. And itsoplusImpl()
function is implemented which means it can be optimized.It seems to be the one I'm looking for. Yet I cannot find a type of Ternary-Edge that link this vertex, camera pose vertex, and 3D world point vertex. Or any other edge that takes this type of vertex.
It would be great if somebody could share an example or some explanation about how this vertex works. Or any other way to optimize camera intrinsic in g2o.