how to plot color points in structure from motion in multiple images example

2 views (last 30 days)
Hi,
In the Matlab implementation of Structure from motion from two views, the dence 3D reconstruction is shown with true color of the image. However in the implementation of Structure from motion from multiple views, it'er s not the case all 3d points is shown in one color(blue). I wonder if anyone knows how I can plot the true color while using Structure from motion from multiple views. Any help would be more than welcomed. Thank you
Regards
  4 Comments
Qu Cao
Qu Cao on 17 May 2021
The examples don't show plotting with RGB colors because each world points is associated with multiple images points. As a workaround, you can compute the average RGB value given the image point locations. Note that pointTrack contains both viewIds and image point locations. You can use them to query the RGB value from the original images.
Nazanin Safavian
Nazanin Safavian on 17 May 2021
Thank you for the help. I don't know how to extract the points coordinates. I can see them when I type tracks.Points but I don't know how to extract them into array so I can just select those ones related to viewIds=1. would you please help me with that?!

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!