OpenCV 5.0.0-pre
Open Source Computer Vision
Loading...
Searching...
No Matches
cv::sfm Namespace Reference

Classes

class  BaseSFM
 base class BaseSFM declares a common API that would be used in a typical scene reconstruction scenario More...
 
class  libmv_CameraIntrinsicsOptions
 Data structure describing the camera model and its parameters. More...
 
class  libmv_ReconstructionOptions
 Data structure describing the reconstruction options. More...
 
class  SFMLibmvEuclideanReconstruction
 SFMLibmvEuclideanReconstruction class provides an interface with the Libmv Structure From Motion pipeline. More...
 

Enumerations

enum  {
  SFM_IO_BUNDLER = 0 ,
  SFM_IO_VISUALSFM = 1 ,
  SFM_IO_OPENSFM = 2 ,
  SFM_IO_OPENMVG = 3 ,
  SFM_IO_THEIASFM = 4
}
 Different supported file formats. More...
 
enum  {
  SFM_DISTORTION_MODEL_POLYNOMIAL = 0 ,
  SFM_DISTORTION_MODEL_DIVISION = 1
}
 Different camera models that libmv supports. More...
 
enum  {
  SFM_REFINE_FOCAL_LENGTH = (1 << 0) ,
  SFM_REFINE_PRINCIPAL_POINT = (1 << 1) ,
  SFM_REFINE_RADIAL_DISTORTION_K1 = (1 << 2) ,
  SFM_REFINE_RADIAL_DISTORTION_K2 = (1 << 4)
}
 All internal camera parameters that libmv is able to refine. More...
 

Functions

void applyTransformationToPoints (InputArray points, InputArray T, OutputArray transformed_points)
 Apply Transformation to points.
 
void computeOrientation (InputArrayOfArrays x1, InputArrayOfArrays x2, OutputArray R, OutputArray t, double s)
 Computes Absolute or Exterior Orientation (Pose Estimation) between 2 sets of 3D point.
 
double depth (InputArray R, InputArray t, InputArray X)
 Returns the depth of a point transformed by a rigid transform.
 
void essentialFromFundamental (InputArray F, InputArray K1, InputArray K2, OutputArray E)
 Get Essential matrix from Fundamental and Camera matrices.
 
void essentialFromRt (InputArray R1, InputArray t1, InputArray R2, InputArray t2, OutputArray E)
 Get Essential matrix from Motion (R's and t's ).
 
void euclideanToHomogeneous (InputArray src, OutputArray dst)
 Converts points from Euclidean to homogeneous space. E.g., ((x,y)->(x,y,1))
 
double fundamentalFromCorrespondences7PointRobust (InputArray x1, InputArray x2, double max_error, OutputArray F, OutputArray inliers, double outliers_probability=1e-2)
 Estimate robustly the fundamental matrix between two dataset of 2D point (image coords space).
 
double fundamentalFromCorrespondences8PointRobust (InputArray x1, InputArray x2, double max_error, OutputArray F, OutputArray inliers, double outliers_probability=1e-2)
 Estimate robustly the fundamental matrix between two dataset of 2D point (image coords space).
 
void fundamentalFromEssential (InputArray E, InputArray K1, InputArray K2, OutputArray F)
 Get Essential matrix from Fundamental and Camera matrices.
 
void fundamentalFromProjections (InputArray P1, InputArray P2, OutputArray F)
 Get Fundamental matrix from Projection matrices.
 
void homogeneousToEuclidean (InputArray src, OutputArray dst)
 Converts point coordinates from homogeneous to euclidean pixel coordinates. E.g., ((x,y,z)->(x/z, y/z))
 
void importReconstruction (const cv::String &file, OutputArrayOfArrays Rs, OutputArrayOfArrays Ts, OutputArrayOfArrays Ks, OutputArrayOfArrays points3d, int file_format=SFM_IO_BUNDLER)
 Import a reconstruction file.
 
void isotropicPreconditionerFromPoints (InputArray points, OutputArray T)
 Point conditioning (isotropic).
 
void KRtFromProjection (InputArray P, OutputArray K, OutputArray R, OutputArray t)
 Get K, R and t from projection matrix P, decompose using the RQ decomposition.
 
void meanAndVarianceAlongRows (InputArray A, OutputArray mean, OutputArray variance)
 Computes the mean and variance of a given matrix along its rows.
 
void motionFromEssential (InputArray E, OutputArrayOfArrays Rs, OutputArrayOfArrays ts)
 
int motionFromEssentialChooseSolution (InputArrayOfArrays Rs, InputArrayOfArrays ts, InputArray K1, InputArray x1, InputArray K2, InputArray x2)
 
void normalizedEightPointSolver (InputArray x1, InputArray x2, OutputArray F)
 Estimate the fundamental matrix between two dataset of 2D point (image coords space).
 
void normalizeFundamental (InputArray F, OutputArray F_normalized)
 Normalizes the Fundamental matrix.
 
void normalizeIsotropicPoints (InputArray points, OutputArray normalized_points, OutputArray T)
 This function normalizes points. (isotropic).
 
void normalizePoints (InputArray points, OutputArray normalized_points, OutputArray T)
 This function normalizes points (non isotropic).
 
void preconditionerFromPoints (InputArray points, OutputArray T)
 
void projectionFromKRt (InputArray K, InputArray R, InputArray t, OutputArray P)
 Get projection matrix P from K, R and t.
 
void projectionsFromFundamental (InputArray F, OutputArray P1, OutputArray P2)
 Get projection matrices from Fundamental matrix.
 
void reconstruct (const std::vector< String > images, OutputArray Ps, OutputArray points3d, InputOutputArray K, bool is_projective=false)
 Reconstruct 3d points from 2d images while performing autocalibration.
 
void reconstruct (const std::vector< String > images, OutputArray Rs, OutputArray Ts, InputOutputArray K, OutputArray points3d, bool is_projective=false)
 Reconstruct 3d points from 2d images while performing autocalibration.
 
void reconstruct (InputArrayOfArrays points2d, OutputArray Ps, OutputArray points3d, InputOutputArray K, bool is_projective=false)
 Reconstruct 3d points from 2d correspondences while performing autocalibration.
 
void reconstruct (InputArrayOfArrays points2d, OutputArray Rs, OutputArray Ts, InputOutputArray K, OutputArray points3d, bool is_projective=false)
 Reconstruct 3d points from 2d correspondences while performing autocalibration.
 
void relativeCameraMotion (InputArray R1, InputArray t1, InputArray R2, InputArray t2, OutputArray R, OutputArray t)
 Computes the relative camera motion between two cameras.
 
Mat skew (InputArray x)
 Returns the 3x3 skew symmetric matrix of a vector.
 
void triangulatePoints (InputArrayOfArrays points2d, InputArrayOfArrays projection_matrices, OutputArray points3d)
 Reconstructs bunch of points by triangulation.