7 #include "cuda-align.cuh" 13 class align_cuda :
public align 21 aligners[std::tuple<rs2_stream, rs2_stream>(from, to)] = align_cuda_helper();
26 byte* aligned_data =
reinterpret_cast<byte*
>(
const_cast<void*
>(aligned.
get_data()));
28 memset(aligned_data, 0, aligned_profile.height() * aligned_profile.width() * aligned.
get_bytes_per_pixel());
34 auto z_to_other = depth_profile.get_extrinsics_to(other_profile);
38 aligner.align_depth_to_other(aligned_data, z_pixels, z_scale, z_intrin, z_to_other, other_intrin);
43 byte* aligned_data =
reinterpret_cast<byte*
>(
const_cast<void*
>(aligned.
get_data()));
45 memset(aligned_data, 0, aligned_profile.height() * aligned_profile.width() * aligned.
get_bytes_per_pixel());
52 auto z_to_other = depth_profile.get_extrinsics_to(other_profile);
55 auto other_pixels =
reinterpret_cast<const byte*
>(other.
get_data());
58 aligner.align_other_to_depth(
59 aligned_data, z_pixels, z_scale, z_intrin, z_to_other, other_intrin, other_pixels, other_profile.
format(), other.
get_bytes_per_pixel());
63 std::map<std::tuple<rs2_stream, rs2_stream>, align_cuda_helper> aligners;
66 #endif // RS2_USE_CUDA
int get_bytes_per_pixel() const
rs2_format format() const
GLint GLint GLsizei GLsizei GLsizei depth
rs2_stream
Streams are different types of data provided by RealSense devices.
const void * get_data() const
rs2_stream stream_type() const
rs2_intrinsics get_intrinsics() const
stream_profile get_profile() const