flanggut / smvs

Shading-aware Multi-view Stereo
BSD 3-Clause "New" or "Revised" License
250 stars 75 forks source link

How to load pre-calibrated camera parameters #5

Closed yuanxy92 closed 7 years ago

yuanxy92 commented 7 years ago

I have some data and it can not be calibrated well by sfm, because the images are captured with green curtain as backgound and few feature points can be found. Therefore, I want to use my camera parameters calibrated by chessboard.

Could you teach me how to modify the code or set the parameters ?

flanggut commented 7 years ago

Hi, input and output are based on MVE scenes. The best way to solve your problem is to simply build your own scene. The file format is documented here. You simply create a views/ directory and subfolders view_XXXX.mve/ for each image containing the image file (usually called undistorted.png and a meta.ini file for the camera parameters. Note that this expects undistorted images so if you use a distortion model you should also undistort your images first.

flanggut commented 7 years ago

Closing due to inactivity. Let me know if you need further help.