Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Meeting] 23/09 #30

Open
Lotemn102 opened this issue Sep 21, 2021 · 0 comments
Open

[Meeting] 23/09 #30

Lotemn102 opened this issue Sep 21, 2021 · 0 comments

Comments

@Lotemn102
Copy link
Owner

Lotemn102 commented Sep 21, 2021

Participants: Alon, Lotem

Projecting Vicon points into image pixels workflow

  1. Annotate N 2d points from the RGB image.
  2. For each point, find it's depth value. The depth frames are aligned to the RGB frames. Do i need to normalize the depth value? Alon's answer: I need to take the x,y values from the realsense api's function of get_point_cloud.
  3. Use Kabsch algorithm. Returns 3x3 rotation matrix R, 3x1 translation vector t, a scalar for scale scale. Alon's answer: If the scale is not close to 1, there is a problem in the implementation!
  4. Transform vicon points to realsense (3d) points: Given a matrix V of Nx3 vicon points,
    • Scale the points by V * scale.
    • Apply R * V.T + t
  5. Project points into pixels: Given a matrix H of Nx3 rotated vicon points,
    • For each point h in H, apply K * h.T, where K is a 3x3 matrix:

      fx 0 ppx
      0 fy ppy
      0 0 1
    fx, fy, ppx, ppy are taken from the realsense bag files.
    Alon's answer: I might need to try to use realsense's api implementation for the projection, since they have implemented optical distortion correction which might improve accuracy
  6. The output of section 5 is 3x1 vector uvw. Scale each coordinate:
    u = u / w
    v = v / w
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant