OpenCV  4.0.1
Open Source Computer Vision
Enumerations | Functions

Enumerations

enum  {
  cv::sfm::SFM_IO_BUNDLER = 0,
  cv::sfm::SFM_IO_VISUALSFM = 1,
  cv::sfm::SFM_IO_OPENSFM = 2,
  cv::sfm::SFM_IO_OPENMVG = 3,
  cv::sfm::SFM_IO_THEIASFM = 4
}
 Different supported file formats. More...
 

Functions

void cv::sfm::importReconstruction (const cv::String &file, OutputArrayOfArrays Rs, OutputArrayOfArrays Ts, OutputArrayOfArrays Ks, OutputArray points3d, int file_format=SFM_IO_BUNDLER)
 Import a reconstruction file. More...
 

Detailed Description

Enumeration Type Documentation

§ anonymous enum

anonymous enum

Different supported file formats.

Enumerator
SFM_IO_BUNDLER 
SFM_IO_VISUALSFM 
SFM_IO_OPENSFM 
SFM_IO_OPENMVG 
SFM_IO_THEIASFM 

Function Documentation

§ importReconstruction()

void cv::sfm::importReconstruction ( const cv::String file,
OutputArrayOfArrays  Rs,
OutputArrayOfArrays  Ts,
OutputArrayOfArrays  Ks,
OutputArray  points3d,
int  file_format = SFM_IO_BUNDLER 
)

Import a reconstruction file.

Parameters
fileThe path to the file.
RsOutput vector of 3x3 rotations of the camera
TsOutput vector of 3x1 translations of the camera.
KsOutput vector of 3x3 instrinsics of the camera.
points3dOutput array with 3d points. Is 3 x N.
file_formatThe format of the file to import.

The function supports reconstructions from Bundler.