MVE - Multi-View Environment mve-devel
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
mve::Bundle Class Reference

A simple data structure to represent bundle files. More...

#include <bundle.h>

Classes

struct  Feature2D
 Representation of a 2D feature. More...
 
struct  Feature3D
 Representation of a 3D feature with position and color. More...
 

Public Types

typedef std::vector< CameraInfoCameras
 
typedef std::shared_ptr< Bundle const > ConstPtr
 
typedef std::vector< Feature3DFeatures
 
typedef std::shared_ptr< BundlePtr
 

Public Member Functions

void delete_camera (std::size_t index)
 Deletes a camera from the data structure fixing references.
 
std::size_t get_byte_size (void) const
 Returns the number of bytes required by this bundle.
 
Camerasget_cameras (void)
 Returns all (possibly invalid) cameras (check focal length).
 
Cameras const & get_cameras (void) const
 Returns all (possibly invalid) cameras (check focal length).
 
Featuresget_features (void)
 Returns the list of 3D features points.
 
Features const & get_features (void) const
 Returns the list of 3D features points.
 
TriangleMesh::Ptr get_features_as_mesh (void) const
 Returns all 3D features as colored set of points.
 
std::size_t get_num_cameras (void) const
 Returns the number of cameras including invalid cameras.
 
std::size_t get_num_valid_cameras (void) const
 Returns the number of cameras excluding inavlid cameras.
 

Static Public Member Functions

static Ptr create (void)
 

Protected Member Functions

 Bundle (void)
 

Detailed Description

A simple data structure to represent bundle files.

A bundle file contains a set of cameras and a 3D feature points. Every feature is associated with cameras that observe the feature.

Definition at line 27 of file bundle.h.

Member Typedef Documentation

◆ Cameras

typedef std::vector<CameraInfo> mve::Bundle::Cameras

Definition at line 61 of file bundle.h.

◆ ConstPtr

typedef std::shared_ptr<Bundle const> mve::Bundle::ConstPtr

Definition at line 60 of file bundle.h.

◆ Features

typedef std::vector<Feature3D> mve::Bundle::Features

Definition at line 62 of file bundle.h.

◆ Ptr

typedef std::shared_ptr<Bundle> mve::Bundle::Ptr

Definition at line 59 of file bundle.h.

Constructor & Destructor Documentation

◆ Bundle()

mve::Bundle::Bundle ( void  )
inlineprotected

Definition at line 97 of file bundle.h.

Member Function Documentation

◆ create()

Bundle::Ptr mve::Bundle::create ( void  )
inlinestatic

Definition at line 102 of file bundle.h.

◆ delete_camera()

void mve::Bundle::delete_camera ( std::size_t  index)

Deletes a camera from the data structure fixing references.

Definition at line 75 of file bundle.cc.

◆ get_byte_size()

std::size_t mve::Bundle::get_byte_size ( void  ) const

Returns the number of bytes required by this bundle.

Definition at line 26 of file bundle.cc.

◆ get_cameras() [1/2]

Bundle::Cameras & mve::Bundle::get_cameras ( void  )
inline

Returns all (possibly invalid) cameras (check focal length).

Definition at line 114 of file bundle.h.

◆ get_cameras() [2/2]

Bundle::Cameras const & mve::Bundle::get_cameras ( void  ) const
inline

Returns all (possibly invalid) cameras (check focal length).

Definition at line 108 of file bundle.h.

◆ get_features() [1/2]

Bundle::Features & mve::Bundle::get_features ( void  )
inline

Returns the list of 3D features points.

Definition at line 126 of file bundle.h.

◆ get_features() [2/2]

Bundle::Features const & mve::Bundle::get_features ( void  ) const
inline

Returns the list of 3D features points.

Definition at line 120 of file bundle.h.

◆ get_features_as_mesh()

TriangleMesh::Ptr mve::Bundle::get_features_as_mesh ( void  ) const

Returns all 3D features as colored set of points.

Definition at line 58 of file bundle.cc.

◆ get_num_cameras()

std::size_t mve::Bundle::get_num_cameras ( void  ) const

Returns the number of cameras including invalid cameras.

Definition at line 39 of file bundle.cc.

◆ get_num_valid_cameras()

std::size_t mve::Bundle::get_num_valid_cameras ( void  ) const

Returns the number of cameras excluding inavlid cameras.

Definition at line 47 of file bundle.cc.


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