10 #include <tbb/parallel_for.h>
23 tbb::parallel_for(0, num_a, [&](
int idx_a) {
24 tbb::parallel_for(0, num_b, [&](
int idx_b) {
25 const float *box_a = boxes_a + idx_a * 5;
26 const float *box_b = boxes_b + idx_b * 5;
27 float *out = iou + idx_a * num_b + idx_b;
38 tbb::parallel_for(0, num_a, [&](
int idx_a) {
39 tbb::parallel_for(0, num_b, [&](
int idx_b) {
40 const float *box_a = boxes_a + idx_a * 7;
41 const float *box_b = boxes_b + idx_b * 7;
42 float *out = iou + idx_a * num_b + idx_b;
void IoUBevCPUKernel(const float *boxes_a, const float *boxes_b, float *iou, int num_a, int num_b)
CLOUDVIEWER_HOST_DEVICE float IoUBev2DWithCenterAndSize(const float *box_a, const float *box_b, bool intersection_only=false)
(x_center, z_center, x_size, z_size, y_rotate)
void IoU3dCPUKernel(const float *boxes_a, const float *boxes_b, float *iou, int num_a, int num_b)
CLOUDVIEWER_HOST_DEVICE float IoU3DWithCenterAndSize(const float *box_a, const float *box_b)
(x_center, y_max, z_center, x_size, y_size, z_size, y_rotate)
Generic file read and write utility for python interface.