Skip to content

Commit

Permalink
perf(image_projection_based_fusion): replace std::bitset
Browse files Browse the repository at this point in the history
Signed-off-by: tomoya.kimura <[email protected]>
  • Loading branch information
tkimura4 committed Nov 16, 2023
1 parent 0f423c6 commit 15fb37b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ std::size_t VoxelGenerator::pointsToVoxels(
point[1] = point_current.y();
point[2] = point_current.z();
point[3] = time_lag;
for (std::size_t i = 1; i <= config_.class_size_; i++) {
point[3 + i] = (*class_iter == i) ? 1 : 0;
}
// decode the class value back to one-hot binary and assign it to point
std::fill(point.begin() + 4, point.end(), 0);
point[4 + *class_iter] = 1;

out_of_range = false;
for (std::size_t di = 0; di < config_.point_dim_size_; di++) {
Expand Down

0 comments on commit 15fb37b

Please sign in to comment.