nmoehrle / mvs-texturing

Algorithm to texture 3D reconstructions from multi-view stereo images
Other
972 stars 334 forks source link

How to get the .cam files? #199

Open anna-debug opened 2 years ago

anna-debug commented 2 years ago

I'm quite a newbie, can anyone explain how I can get the .cam files with the parameters for my images?

Maxiah commented 1 year ago

use colmap to write out the .nvm files

abenbihi commented 1 year ago

Assuming you are using a pinhole camera model with known parameters fx, fy, cx, cy, and according to elibs/mve/libs/mve/camera.cc the .cam files has the following format f d0 d1 paspect ppx ppy with

133     # format the intrinsics to texrecon format
134     f = fx / width 
135     d0 = 0.
136     d1 = 0. 
137     paspect = fy / fx  
138     ppx = cx / width
139     ppy = cy / height