Blender  V3.3
Public Member Functions | List of all members
libmv::ProjectiveReconstruction Class Reference

#include <reconstruction.h>

Public Member Functions

void InsertCamera (int image, const Mat34 &P)
 
void InsertPoint (int track, const Vec4 &X)
 
ProjectiveCameraCameraForImage (int image)
 Returns a pointer to the camera corresponding to image. More...
 
const ProjectiveCameraCameraForImage (int image) const
 
vector< ProjectiveCameraAllCameras () const
 Returns all cameras. More...
 
ProjectivePointPointForTrack (int track)
 Returns a pointer to the point corresponding to track. More...
 
const ProjectivePointPointForTrack (int track) const
 
vector< ProjectivePointAllPoints () const
 Returns all points. More...
 

Detailed Description

The ProjectiveReconstruction class stores cameras and points .

The ProjectiveReconstruction container is intended as the store of 3D reconstruction data to be used with the MultiView API.

The container has lookups to query a ProjectiveCamera from an image or a ProjectivePoint from a track.

See also
Camera, Point

Definition at line 176 of file libmv/simple_pipeline/reconstruction.h.

Member Function Documentation

◆ AllCameras()

vector< ProjectiveCamera > libmv::ProjectiveReconstruction::AllCameras ( ) const

Returns all cameras.

Definition at line 149 of file libmv/simple_pipeline/reconstruction.cc.

Referenced by libmv::EuclideanScaleToUnity().

◆ AllPoints()

vector< ProjectivePoint > libmv::ProjectiveReconstruction::AllPoints ( ) const

Returns all points.

Definition at line 175 of file libmv/simple_pipeline/reconstruction.cc.

Referenced by libmv::EuclideanScaleToUnity().

◆ CameraForImage() [1/2]

ProjectiveCamera * libmv::ProjectiveReconstruction::CameraForImage ( int  image)

◆ CameraForImage() [2/2]

const ProjectiveCamera * libmv::ProjectiveReconstruction::CameraForImage ( int  image) const

Definition at line 140 of file libmv/simple_pipeline/reconstruction.cc.

References image(), and NULL.

◆ InsertCamera()

void libmv::ProjectiveReconstruction::InsertCamera ( int  image,
const Mat34 P 
)

Insert a camera into the set. If there is already a camera for the given image, the existing camera is replaced. If there is no camera for the given image, a new one is added.

image is the key used to retrieve the cameras with the other methods in this class.

Note
You should use the same image identifier as in Tracks.

Definition at line 115 of file libmv/simple_pipeline/reconstruction.cc.

References camera, image(), LG, and P().

Referenced by libmv::EuclideanReconstructTwoFrames(), libmv::ModalSolver(), libmv::ProjectiveReconstructTwoFrames(), libmv::SelectKeyframesBasedOnGRICAndVariance(), and libmv::TEST().

◆ InsertPoint()

void libmv::ProjectiveReconstruction::InsertPoint ( int  track,
const Vec4 X 
)

Insert a point into the reconstruction. If there is already a point for the given track, the existing point is replaced. If there is no point for the given track, a new one is added.

track is the key used to retrieve the points with the other methods in this class.

Note
You should use the same track identifier as in Tracks.

Definition at line 125 of file libmv/simple_pipeline/reconstruction.cc.

References LG, and X.

Referenced by libmv::EuclideanIntersect(), libmv::ModalSolver(), and libmv::ProjectiveIntersect().

◆ PointForTrack() [1/2]

ProjectivePoint * libmv::ProjectiveReconstruction::PointForTrack ( int  track)

◆ PointForTrack() [2/2]

const ProjectivePoint * libmv::ProjectiveReconstruction::PointForTrack ( int  track) const

Definition at line 163 of file libmv/simple_pipeline/reconstruction.cc.

References NULL, and point.


The documentation for this class was generated from the following files: