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

Public Types

typedef Eigen::Array< float, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor > FloatArray
 
typedef Eigen::Array< std::uint32_t, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor > UIntArray
 

Public Member Functions

 Image (const Camera &camera, const boost::filesystem::path &hdrFilename, const boost::filesystem::path &attribFilename)
 
const CameragetCamera () const
 
unsigned getFrameIdx () const
 
const std::string & getCameraName () const
 
const boost::filesystem::path & getHDRFilename () const
 
const boost::filesystem::path & getAttribFilename () const
 
FloatArray readDistanceMap () const
 
FloatArray readZBuffer (unsigned subsamplingStride=1) const
 
FloatArray computeZBuffer (const FloatArray &distanceMap, unsigned subsamplingStride=1) const
 
UIntArray readObjectID () const
 
void extractPointcloud (std::vector< Eigen::Vector3f > &position, std::vector< unsigned > *objectId=nullptr, unsigned subsamplingStride=1) const
 

Static Public Member Functions

static Image readFromSceneXML (const tinyxml2::XMLElement *imageNode, const boost::filesystem::path &sceneRoot)
 

Protected Attributes

Camera m_camera
 
unsigned m_frameIdx = ~0u
 
std::string m_cameraName
 
boost::filesystem::path m_hdrFilename
 
boost::filesystem::path m_attribFilename
 
boost::optional< float > m_focalLength
 
boost::optional< float > m_sensorWidth
 
boost::optional< float > m_fNumber
 

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