|
Point Cloud Library (PCL) 1.15.1
|
Class that performs raycasting for TSDF volume. More...
Public Types | |
| using | Ptr = shared_ptr<RayCaster> |
| using | ConstPtr = shared_ptr<const RayCaster> |
| using | MapArr = pcl::gpu::DeviceArray2D<float> |
| using | View = pcl::gpu::DeviceArray2D<PixelRGB> |
| using | Depth = pcl::gpu::DeviceArray2D<unsigned short> |
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. | |
| void | setIntrinsics (float fx=525.f, float fy=525.f, float cx=-1, float cy=-1) |
| Sets camera intrinsics. | |
| void | run (const TsdfVolume &volume, const Eigen::Affine3f &camera_pose, tsdf_buffer *buffer) |
| Runs raycasting algorithm from given camera pose. | |
| void | generateSceneView (View &view) const |
| Generates scene view using data raycasted by run method. | |
| void | generateSceneView (View &view, const Eigen::Vector3f &light_source_pose) const |
| Generates scene view using data raycasted by run method. | |
| void | generateDepthImage (Depth &depth) const |
| Generates depth image using data raycasted by run method. | |
| MapArr | getVertexMap () const |
| Returns raycasterd vertex map. | |
| MapArr | getNormalMap () const |
| Returns raycasterd normal map. | |
Public Attributes | |
| const int | cols |
| Image with height. | |
| const int | rows |
Class that performs raycasting for TSDF volume.
Definition at line 61 of file raycaster.h.
| using pcl::gpu::kinfuLS::RayCaster::ConstPtr = shared_ptr<const RayCaster> |
Definition at line 65 of file raycaster.h.
| using pcl::gpu::kinfuLS::RayCaster::Depth = pcl::gpu::DeviceArray2D<unsigned short> |
Definition at line 68 of file raycaster.h.
| using pcl::gpu::kinfuLS::RayCaster::MapArr = pcl::gpu::DeviceArray2D<float> |
Definition at line 66 of file raycaster.h.
| using pcl::gpu::kinfuLS::RayCaster::Ptr = shared_ptr<RayCaster> |
Definition at line 64 of file raycaster.h.
Definition at line 67 of file raycaster.h.
| 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 ) |
| void pcl::gpu::kinfuLS::RayCaster::generateDepthImage | ( | Depth & | depth | ) | const |
Generates depth image using data raycasted by run method.
So call it before.
| [out] | depth | output 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.
| [out] | view | output 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.
| [out] | view | output array for RGB image |
| [in] | light_source_pose | pose of light source |
| MapArr pcl::gpu::kinfuLS::RayCaster::getNormalMap | ( | ) | const |
Returns raycasterd normal map.
References PCL_MAKE_ALIGNED_OPERATOR_NEW.
| 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.
| [in] | volume | tsdf volume container |
| [in] | camera_pose | camera 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.
| const int pcl::gpu::kinfuLS::RayCaster::cols |
| const int pcl::gpu::kinfuLS::RayCaster::rows |
Definition at line 71 of file raycaster.h.
Referenced by RayCaster().