7 #include "cuda-align.cuh"
13 class align_cuda :
public align
21 aligners[std::tuple<rs2_stream, rs2_stream>(from, to)] = align_cuda_helper();
28 memset(aligned_data, 0, aligned_profile.height() * aligned_profile.width() * aligned.
get_bytes_per_pixel());
36 auto z_pixels =
reinterpret_cast<const uint16_t*
>(
depth.get_data());
38 aligner.align_depth_to_other(aligned_data, z_pixels, z_scale, z_intrin, z_to_other, other_intrin);
45 memset(aligned_data, 0, aligned_profile.height() * aligned_profile.width() * aligned.
get_bytes_per_pixel());
54 auto z_pixels =
reinterpret_cast<const uint16_t*
>(
depth.get_data());
55 auto other_pixels =
reinterpret_cast<const uint8_t *
>(other.
get_data());
58 aligner.align_other_to_depth(
63 std::map<std::tuple<rs2_stream, rs2_stream>, align_cuda_helper> aligners;
66 #endif // RS2_USE_CUDA