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.
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 
14  rs2::points output,
17  {
18  auto image = output.get_vertices();
19  auto depth_data = (uint16_t*)depth_frame.get_data();
20  auto depth_scale = depth_frame.get_units();
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 }
unsigned short uint16_t
Definition: stdint.h:79
GLenum GLenum GLsizei void * image
const float3 * depth_to_points(rs2::points output, const rs2_intrinsics &depth_intrinsics, const rs2::depth_frame &depth_frame) override
const void * get_data() const
Definition: rs_frame.hpp:547
float get_units() const
Definition: rs_frame.hpp:849
Video stream intrinsics.
Definition: rs_types.h:58
const vertex * get_vertices() const
Definition: rs_frame.hpp:771


librealsense2
Author(s): LibRealSense ROS Team
autogenerated on Thu Dec 22 2022 03:43:16