Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Camera Resectioning Example

This is a 1:1 transcription of CameraResectioning.cpp, but using custom factors.

Open In Colab

Assumptions:

  • Camera: f=1f = 1, Image: 100×100100\times100, center: 50,50.050, 50.0

  • Pose (ground truth): (Xw,−Yw,−Zw,[0,0,2.0]T)(X_w, -Y_w, -Z_w, [0,0,2.0]^T)

  • Known landmarks: (10,10,0),(−10,10,0),(−10,−10,0),(10,−10,0)(10,10,0), (-10,10,0), (-10,-10,0), (10,-10,0)

  • Perfect measurements: (55,45),(45,45),(45,55),(55,55)(55,45), (45,45), (45,55), (55,55)

Final result:

Values with 1 values:
Value x1: (gtsam::Pose3)
R: [
	1, 0, 0;
	0, -1, 0;
	0, 0, -1
]
t: 0 0 2