Blender
V3.3
|
#include <reconstruction.h>
Public Member Functions | |
void | InsertCamera (int image, const Mat34 &P) |
void | InsertPoint (int track, const Vec4 &X) |
ProjectiveCamera * | CameraForImage (int image) |
Returns a pointer to the camera corresponding to image. More... | |
const ProjectiveCamera * | CameraForImage (int image) const |
vector< ProjectiveCamera > | AllCameras () const |
Returns all cameras. More... | |
ProjectivePoint * | PointForTrack (int track) |
Returns a pointer to the point corresponding to track. More... | |
const ProjectivePoint * | PointForTrack (int track) const |
vector< ProjectivePoint > | AllPoints () const |
Returns all points. More... | |
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.
Definition at line 176 of file libmv/simple_pipeline/reconstruction.h.
vector< ProjectiveCamera > libmv::ProjectiveReconstruction::AllCameras | ( | ) | const |
Returns all cameras.
Definition at line 149 of file libmv/simple_pipeline/reconstruction.cc.
Referenced by libmv::EuclideanScaleToUnity().
vector< ProjectivePoint > libmv::ProjectiveReconstruction::AllPoints | ( | ) | const |
Returns all points.
Definition at line 175 of file libmv/simple_pipeline/reconstruction.cc.
Referenced by libmv::EuclideanScaleToUnity().
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 image().
Referenced by libmv::EuclideanBundleCommonIntrinsics(), libmv::EuclideanIntersect(), libmv::EuclideanScaleToUnity(), libmv::InternalCompleteReconstruction(), libmv::InternalReprojectionError(), libmv::ProjectiveIntersect(), and libmv::TEST().
const ProjectiveCamera * libmv::ProjectiveReconstruction::CameraForImage | ( | int | image | ) | const |
Definition at line 140 of file libmv/simple_pipeline/reconstruction.cc.
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.
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().
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.
Definition at line 125 of file libmv/simple_pipeline/reconstruction.cc.
Referenced by libmv::EuclideanIntersect(), libmv::ModalSolver(), and libmv::ProjectiveIntersect().
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.
Referenced by libmv::EuclideanBundleCommonIntrinsics(), libmv::EuclideanScaleToUnity(), libmv::InternalCompleteReconstruction(), libmv::InternalReprojectionError(), libmv::ModalSolver(), libmv::SelectKeyframesBasedOnGRICAndVariance(), and libmv::TEST().
const ProjectivePoint * libmv::ProjectiveReconstruction::PointForTrack | ( | int | track | ) | const |
Definition at line 163 of file libmv/simple_pipeline/reconstruction.cc.