Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: improved projection APIs #53

Merged
merged 4 commits into from
Apr 11, 2024
Merged

refactor: improved projection APIs #53

merged 4 commits into from
Apr 11, 2024

Conversation

yxlao
Copy link
Owner

@yxlao yxlao commented Apr 11, 2024

New Functions

  • ct.project.depth_to_point_cloud(): Unifies and replaces the functionality of the removed functions, enabling conversion of depth images to point clouds with
    • optional color information, and
    • option to choose dense image form or point cloud form.
  • ct.convert.to_homo(): Appends a column of ones to a 2D array, converting it to homogeneous coordinates.
  • ct.convert.from_homo(): Converts from homogeneous to Cartesian coordinates by dividing by the last column.

Removed Functions

  • ct.project.im_depth_to_points(): This is replaced by ct.project.depth_to_point_cloud().
  • ct.project.im_depth_to_im_points(): This is replaced by ct.project.depth_to_point_cloud().
  • ct.project.im_depth_im_color_to_points_colors(): This is replaced by ct.project.depth_to_point_cloud().

@yxlao yxlao merged commit 9ab2b92 into main Apr 11, 2024
5 checks passed
@yxlao yxlao deleted the project-api branch April 11, 2024 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant