Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
proc
cuda
cuda-pointcloud.cpp
Go to the documentation of this file.
1
// License: Apache 2.0. See LICENSE file in root directory.
2
// Copyright(c) 2019 Intel Corporation. All Rights Reserved.
3
#include "
proc/cuda/cuda-pointcloud.h
"
4
5
#ifdef RS2_USE_CUDA
6
#include "../../cuda/cuda-pointcloud.cuh"
7
#endif
8
9
namespace
librealsense
10
{
11
pointcloud_cuda::pointcloud_cuda
() :
pointcloud
(
"Pointcloud (CUDA)"
) {}
12
13
const
float3
*
pointcloud_cuda::depth_to_points
(
14
rs2::points
output,
15
const
rs2_intrinsics
&
depth_intrinsics
,
16
const
rs2::depth_frame
&
depth_frame
,
17
float
depth_scale
)
18
{
19
auto
image
= output.
get_vertices
();
20
auto
depth_data = (
uint16_t
*)depth_frame.
get_data
();
21
#ifdef RS2_USE_CUDA
22
rscuda::deproject_depth_cuda((
float
*)
image
, depth_intrinsics, depth_data, depth_scale);
23
#endif
24
return
(
float3
*)
image
;
25
}
26
}
librealsense::pointcloud
Definition:
pointcloud.h:11
librealsense::pointcloud_cuda::pointcloud_cuda
pointcloud_cuda()
Definition:
cuda-pointcloud.cpp:11
rs2::points
Definition:
rs_frame.hpp:735
opencv_pointcloud_viewer.depth_intrinsics
depth_intrinsics
Definition:
opencv_pointcloud_viewer.py:79
librealsense::depth_frame
Definition:
archive.h:298
cuda-pointcloud.h
rs2::frame::get_data
const void * get_data() const
Definition:
rs_frame.hpp:545
uint16_t
unsigned short uint16_t
Definition:
stdint.h:79
image
GLenum GLenum GLsizei void * image
Definition:
glad/glad/glad.h:3588
librealsense
Definition:
calibration-model.h:6
librealsense::pointcloud_cuda::depth_to_points
const float3 * depth_to_points(rs2::points output, const rs2_intrinsics &depth_intrinsics, const rs2::depth_frame &depth_frame, float depth_scale) override
Definition:
cuda-pointcloud.cpp:13
librealsense::float3
Definition:
src/types.h:573
rs2::points::get_vertices
const vertex * get_vertices() const
Definition:
rs_frame.hpp:767
align-depth2color.depth_scale
depth_scale
Definition:
align-depth2color.py:40
rs2_intrinsics
Video stream intrinsics.
Definition:
rs_types.h:58
rs2::depth_frame
Definition:
rs_frame.hpp:809
librealsense2
Author(s): Sergey Dorodnicov
, Doron Hirshberg
, Mark Horn
, Reagan Lopez
, Itay Carpis
autogenerated on Mon May 3 2021 02:47:12