41#ifdef BUILD_SYCL_MODULE
49#include <sycl/sycl.hpp>
73 float x_rot, z_rot, cosa, sina, cy;
74 cy = bottom_y - h / 2.0;
75 if ((fabsf(
x - cx) > max_dis) || (fabsf(
y - cy) > h / 2.0) ||
76 (fabsf(
z - cz) > max_dis)) {
81 x_rot = (
x - cx) * cosa + (
z - cz) * (-sina);
82 z_rot = (
x - cx) * sina + (
z - cz) * cosa;
84 return (x_rot >= -l / 2.0) & (x_rot <= l / 2.0) & (z_rot >= -w / 2.0) &
88#ifdef BUILD_CUDA_MODULE
90void roipool3dLauncher(
int batch_size,
97 const float *pts_feature,
98 float *pooled_features,
99 int *pooled_empty_flag);
102#ifdef BUILD_SYCL_MODULE
111 const float *boxes3d,
112 const float *pts_feature,
113 float *pooled_features,
114 int *pooled_empty_flag);
123 const float *boxes3d,
124 const float *pts_feature,
125 float *pooled_features,
126 int *pooled_empty_flag);
#define OPEN3D_HOST_DEVICE
Definition CUDAUtils.h:43
sycl::queue queue
Definition SYCLContext.cpp:88
void roipool3dLauncherCPU(int batch_size, int pts_num, int boxes_num, int feature_in_len, int sampled_pts_num, const float *xyz, const float *boxes3d, const float *pts_feature, float *pooled_features, int *pooled_empty_flag)
Definition RoiPool.cpp:23
OPEN3D_HOST_DEVICE bool pt_in_box3d(float x, float y, float z, float cx, float bottom_y, float cz, float h, float w, float l, float angle, float max_dis)
Definition RoiPoolKernel.h:62
void roipool3dLauncherSYCL(sycl::queue &queue, int batch_size, int pts_num, int boxes_num, int feature_in_len, int sampled_pts_num, const float *xyz, const float *boxes3d, const float *pts_feature, float *pooled_features, int *pooled_empty_flag)
Definition RoiPoolKernelSYCL.cpp:35
Definition PinholeCameraIntrinsic.cpp:16