nghiaho12 / SFM_example

Example of doing SFM (structure form motion) using OpenCV + GTSAM + PMVS
BSD 2-Clause "Simplified" License
121 stars 40 forks source link

Ran succesfully, but where are the 3D points? #3

Open soulslicer opened 3 years ago

soulslicer commented 3 years ago

I got the following as my output. I understand that what I have is not dense, but where is the non-dense 3d points? Also this only outputs the projection matrices? Does it give the 4x4 transform as well?

initial camera matrix K 
[1077, 0, 684;
 0, 1077, 456;
 0, 0, 1]

image 2 ==> 1 scale=1.23606 count=144453
image 3 ==> 2 scale=1.3106 count=129795
image 4 ==> 3 scale=1.09828 count=120786

initial graph error = 7606.14
final graph error = 124.631

final camera matrix K
    1067.89 6.57066e-06     693.519
          0      1062.5     447.738
          0           0           1

You can now run pmvs2 on the results eg. PATH_TO_PMVS_BINARY/pmvs2 root/ options.txt
softlion commented 1 year ago

They are in landmarks