SyB3R - Synthetic Benchmark for 3D Reconstruction
Classes | Public Member Functions | Protected Attributes | List of all members
syb3r::data::Pointcloud Class Reference

Stores a point cloud with position, color, normal and sensor visibility information for each point. More...

#include <libs/Common/source/syb3r/data/Pointcloud.h>

Classes

struct  OffsetCount
 

Public Member Functions

void reset (unsigned numPoints)
 
void setPoint (unsigned index, const Eigen::Vector3f &position, const Eigen::Vector3f &normal)
 
void setPoint (unsigned index, const Eigen::Vector3f &position, const Eigen::Vector3f &normal, const Eigen::Vector3f &color)
 
void setPointVisibility (unsigned index, const unsigned *imageIndices, unsigned numImageIndices)
 
unsigned getCount () const
 Returns the number of points in the point cloud.
 
const Eigen::Vector3f & getPosition (unsigned index) const
 Returns the 3D world space position of a point in the point cloud.
 
const Eigen::Vector3f & getNormal (unsigned index) const
 Returns the 3D world space estimated surface normal at a point in the point cloud.
 
const Eigen::Vector3f & getColor (unsigned index) const
 Returns a sRGB [0..1] surface color at a point in the point cloud.
 

Protected Attributes

std::vector< Eigen::Vector3f > m_positions
 
std::vector< Eigen::Vector3f > m_normals
 
std::vector< Eigen::Vector3f > m_colors
 
std::vector< OffsetCountm_visibilities
 
std::vector< unsigned > m_visibilityImageIndices
 

Detailed Description

Stores a point cloud with position, color, normal and sensor visibility information for each point.


Class Documentation

struct syb3r::data::Pointcloud::OffsetCount
Class Members
unsigned count
unsigned offset

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