Point Cloud Library (PCL)  1.9.1-dev
List of all members | Public Types | Public Member Functions | Public Attributes
pcl::gpu::kinfuLS::RayCaster Struct Reference

Class that performs raycasting for TSDF volume. More...

#include </__w/1/s/gpu/kinfu_large_scale/include/pcl/gpu/kinfu_large_scale/raycaster.h>

Public Types

typedef boost::shared_ptr< RayCasterPtr
 
typedef pcl::gpu::DeviceArray2D< float > MapArr
 
typedef pcl::gpu::DeviceArray2D< PixelRGBView
 
typedef pcl::gpu::DeviceArray2D< unsigned short > Depth
 

Public Member Functions

 RayCaster (int rows=480, int cols=640, float fx=525.f, float fy=525.f, float cx=-1, float cy=-1)
 Constructor. More...
 
 ~RayCaster ()
 
void setIntrinsics (float fx=525.f, float fy=525.f, float cx=-1, float cy=-1)
 Sets camera intrinsics. More...
 
void run (const TsdfVolume &volume, const Eigen::Affine3f &camera_pose, tsdf_buffer *buffer)
 Runs raycasting algorithm from given camera pose. More...
 
void generateSceneView (View &view) const
 Generates scene view using data raycasted by run method. More...
 
void generateSceneView (View &view, const Eigen::Vector3f &light_source_pose) const
 Generates scene view using data raycasted by run method. More...
 
void generateDepthImage (Depth &depth) const
 Generates depth image using data raycasted by run method. More...
 
MapArr getVertexMap () const
 Returns raycasterd vertex map. More...
 
MapArr getNormalMap () const
 Returns raycasterd normal map. More...
 

Public Attributes

const int cols
 Image with height. More...
 
const int rows
 

Detailed Description

Class that performs raycasting for TSDF volume.

Author
Anatoly Baskeheev, Itseez Ltd, (mynam.nosp@m.e.my.nosp@m.surna.nosp@m.me@m.nosp@m.ycomp.nosp@m.any..nosp@m.com)

Definition at line 61 of file raycaster.h.

Member Typedef Documentation

Definition at line 67 of file raycaster.h.

Definition at line 65 of file raycaster.h.

typedef boost::shared_ptr<RayCaster> pcl::gpu::kinfuLS::RayCaster::Ptr

Definition at line 64 of file raycaster.h.

Definition at line 66 of file raycaster.h.

Constructor & Destructor Documentation

pcl::gpu::kinfuLS::RayCaster::RayCaster ( int  rows = 480,
int  cols = 640,
float  fx = 525.f,
float  fy = 525.f,
float  cx = -1,
float  cy = -1 
)

Constructor.

Parameters
[in]rowsimage rows
[in]colsimage cols
[in]fxfocal x
[in]fyfocal y
[in]cxprincipal point x
[in]cyprincipal point y
pcl::gpu::kinfuLS::RayCaster::~RayCaster ( )

Member Function Documentation

void pcl::gpu::kinfuLS::RayCaster::generateDepthImage ( Depth depth) const

Generates depth image using data raycasted by run method.

So call it before.

Parameters
[out]depthoutput array for depth image
void pcl::gpu::kinfuLS::RayCaster::generateSceneView ( View view) const

Generates scene view using data raycasted by run method.

So call it before.

Parameters
[out]viewoutput array for RGB image
void pcl::gpu::kinfuLS::RayCaster::generateSceneView ( View view,
const Eigen::Vector3f &  light_source_pose 
) const

Generates scene view using data raycasted by run method.

So call it before.

Parameters
[out]viewoutput array for RGB image
[in]light_source_posepose of light source
MapArr pcl::gpu::kinfuLS::RayCaster::getNormalMap ( ) const

Returns raycasterd normal map.

MapArr pcl::gpu::kinfuLS::RayCaster::getVertexMap ( ) const

Returns raycasterd vertex map.

void pcl::gpu::kinfuLS::RayCaster::run ( const TsdfVolume volume,
const Eigen::Affine3f &  camera_pose,
tsdf_buffer buffer 
)

Runs raycasting algorithm from given camera pose.

It writes results to internal files.

Parameters
[in]volumetsdf volume container
[in]camera_posecamera pose
buffer
void pcl::gpu::kinfuLS::RayCaster::setIntrinsics ( float  fx = 525.f,
float  fy = 525.f,
float  cx = -1,
float  cy = -1 
)

Sets camera intrinsics.

Member Data Documentation

const int pcl::gpu::kinfuLS::RayCaster::cols

Image with height.

Definition at line 70 of file raycaster.h.

const int pcl::gpu::kinfuLS::RayCaster::rows

Definition at line 70 of file raycaster.h.


The documentation for this struct was generated from the following file: