Blender V5.0
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.
const ProjectiveCameraCameraForImage (int image) const
vector< ProjectiveCameraAllCameras () const
 Returns all cameras.
ProjectivePointPointForTrack (int track)
 Returns a pointer to the point corresponding to track.
const ProjectivePointPointForTrack (int track) const
vector< ProjectivePointAllPoints () const
 Returns all points.

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.

◆ AllPoints()

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

Returns all points.

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

References i.

◆ CameraForImage() [1/2]

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

Returns a pointer to the camera corresponding to image.

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

References CameraForImage().

Referenced by CameraForImage(), and libmv::ProjectiveIntersect().

◆ CameraForImage() [2/2]

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

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

◆ 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 libmv::ProjectiveCamera::image, LG, libmv::ProjectiveCamera::P, and P.

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

◆ 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::ProjectiveIntersect().

◆ PointForTrack() [1/2]

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

Returns a pointer to the point corresponding to track.

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

References PointForTrack().

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

◆ PointForTrack() [2/2]

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

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