File tree 2 files changed +6
-3
lines changed
perception/autoware_image_projection_based_fusion/src
segmentation_pointcloud_fusion
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ void RoiPointCloudFusionNode::fuse_on_single_image(
129
129
*reinterpret_cast <const float *>(&transformed_cloud.data [offset + y_offset]);
130
130
const float transformed_z =
131
131
*reinterpret_cast <const float *>(&transformed_cloud.data [offset + z_offset]);
132
- if (transformed_z <= 0.0 ) {
132
+ if (det2d. camera_projector_ptr -> isOutsideHorizontalView (transformed_x, transformed_z) ) {
133
133
continue ;
134
134
}
135
135
Original file line number Diff line number Diff line change @@ -122,8 +122,11 @@ void SegmentPointCloudFusionNode::fuse_on_single_image(
122
122
*reinterpret_cast <float *>(&transformed_cloud.data [global_offset + y_offset]);
123
123
float transformed_z =
124
124
*reinterpret_cast <float *>(&transformed_cloud.data [global_offset + z_offset]);
125
- // skip filtering pointcloud behind the camera or too far from camera
126
- if (transformed_z <= 0.0 || transformed_z > filter_distance_threshold_) {
125
+ // skip pointcloud out of FOV
126
+ if (det2d.camera_projector_ptr ->isOutsideHorizontalView (transformed_x, transformed_z)) {
127
+ continue ;
128
+ }
129
+ if (transformed_z > filter_distance_threshold_) {
127
130
continue ;
128
131
}
129
132
You can’t perform that action at this time.
0 commit comments