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

#include <reconstruction.h>

Public Member Functions

 EuclideanReconstruction ()
 
 EuclideanReconstruction (const EuclideanReconstruction &other)
 Copy constructor. More...
 
EuclideanReconstructionoperator= (const EuclideanReconstruction &other)
 
void InsertCamera (int image, const Mat3 &R, const Vec3 &t)
 
void InsertPoint (int track, const Vec3 &X)
 
EuclideanCameraCameraForImage (int image)
 Returns a pointer to the camera corresponding to image. More...
 
const EuclideanCameraCameraForImage (int image) const
 
vector< EuclideanCameraAllCameras () const
 Returns all cameras. More...
 
EuclideanPointPointForTrack (int track)
 Returns a pointer to the point corresponding to track. More...
 
const EuclideanPointPointForTrack (int track) const
 
vector< EuclideanPointAllPoints () const
 Returns all points. More...
 

Detailed Description

The EuclideanReconstruction class stores cameras and points .

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

The container has lookups to query a EuclideanCamera from an image or a EuclideanPoint from a track.

See also
Camera, Point

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

Constructor & Destructor Documentation

◆ EuclideanReconstruction() [1/2]

libmv::EuclideanReconstruction::EuclideanReconstruction ( )

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

◆ EuclideanReconstruction() [2/2]

libmv::EuclideanReconstruction::EuclideanReconstruction ( const EuclideanReconstruction other)

Copy constructor.

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

Member Function Documentation

◆ AllCameras()

vector< EuclideanCamera > libmv::EuclideanReconstruction::AllCameras ( ) const

Returns all cameras.

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

◆ AllPoints()

vector< EuclideanPoint > libmv::EuclideanReconstruction::AllPoints ( ) const

Returns all points.

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

◆ CameraForImage() [1/2]

EuclideanCamera * libmv::EuclideanReconstruction::CameraForImage ( int  image)

Returns a pointer to the camera corresponding to image.

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

References image().

◆ CameraForImage() [2/2]

const EuclideanCamera * libmv::EuclideanReconstruction::CameraForImage ( int  image) const

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

References image(), and NULL.

◆ InsertCamera()

void libmv::EuclideanReconstruction::InsertCamera ( int  image,
const Mat3 R,
const Vec3 t 
)

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 44 of file libmv/simple_pipeline/reconstruction.cc.

References camera, image(), LG, R, and t.

Referenced by libmv::EuclideanResect(), and libmv::ProjectiveResect().

◆ InsertPoint()

void libmv::EuclideanReconstruction::InsertPoint ( int  track,
const Vec3 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 57 of file libmv/simple_pipeline/reconstruction.cc.

References LG, and X.

◆ operator=()

EuclideanReconstruction & libmv::EuclideanReconstruction::operator= ( const EuclideanReconstruction other)

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

◆ PointForTrack() [1/2]

EuclideanPoint * libmv::EuclideanReconstruction::PointForTrack ( int  track)

Returns a pointer to the point corresponding to track.

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

Referenced by libmv::EuclideanResect(), and libmv::ProjectiveResect().

◆ PointForTrack() [2/2]

const EuclideanPoint * libmv::EuclideanReconstruction::PointForTrack ( int  track) const

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

References NULL, and point.


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