From 948b1c27fc9674be05c536dae902c238e0b788fa Mon Sep 17 00:00:00 2001 From: Eric Leonardis Date: Fri, 26 Jul 2024 11:26:07 -0700 Subject: [PATCH] Update readme to include reprojections (#54) * Update README.md added reprojection example to readme * Update README.md --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e7f86bf..45579c4 100644 --- a/README.md +++ b/README.md @@ -125,6 +125,12 @@ The user can change the loss function with the optional `reproj_loss` argument, Lastly, the optional `n_deriv_smooth` argument details the order of derivative to smooth for in the temporal filtering process, and it is 1 by default. To learn more, refer to the [aniposelib documentation](https://github.com/lambdaloop/aniposelib/tree/master/aniposelib). +9. Reproject points back to camera coordinates + +``` +slap-reproject --p3d points3d.h5 --calib calibration.toml --fname reprojections.h5 +``` + **As a script** @@ -165,6 +171,10 @@ points3d = slap.triangulate(p2d = 'my/path', reproj_error_threshold = 10, reproj_loss = 'l2', n_deriv_smooth = 2) + +reprojections = slap.reproject(p3d = 'my/path', + calib='my/path/calibration.toml', + fname='my/path/reprojections.h5') ``` -*It is important to note that while saving is automatic from the command line, it is optional when running the commands in a script or notebook.* \ No newline at end of file +*It is important to note that while saving is automatic from the command line, it is optional when running the commands in a script or notebook.*