Skip to content

Commit

Permalink
Revert "fix: check the point after the image projection is done"
Browse files Browse the repository at this point in the history
This reverts commit 849e529.
  • Loading branch information
technolojin committed Dec 16, 2024
1 parent 849e529 commit 355c183
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -349,11 +349,12 @@ dc | dc dc dc dc ||zc|

/// check if the point is in the camera view
if (p_z <= 0.0) continue;
if (p_x < fov_left_.at(image_id) * p_z) continue;
if (p_x > fov_right_.at(image_id) * p_z) continue;

// project
Eigen::Vector2d projected_point = calcRawImageProjectedPoint(
pinhole_camera_model, cv::Point3d(p_x, p_y, p_z), point_project_to_unrectified_image_);
if (projected_point.x() < fov_left_.at(image_id)) continue;
if (projected_point.x() > fov_right_.at(image_id)) continue;

// iterate 2d bbox
for (const auto & feature_object : objects) {
Expand Down

0 comments on commit 355c183

Please sign in to comment.