Skip to content

Conversation

@Xiaoming-Zhao
Copy link
Collaborator

This PR adds more explicit constraints on MPI plane sizes. Due to MPI's intrinsic properties, it may not be able to handle large range of camera poses (see #12). We add assertion to give clearer error message.

Copy link

@fangchangma fangchangma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor suggestion on removing the deprecated code. Feel free to merge after the removal.

Comment on lines 689 to 702
# # [Deprecated] we choose four courners and middle points of four edges.
# # NOTE: the following heuristic camera positions cannot handle some extreme cases.
# # We choose to denstly sample camera positions instead.
# cam_heuristic_angles = [
# (cam_horizontal_min, cam_vertical_min),
# (cam_horizontal_min, cam_vertical_max),
# (cam_horizontal_max, cam_vertical_min),
# (cam_horizontal_max, cam_vertical_max),
# (horizontal_mid_angle, cam_vertical_min),
# (horizontal_mid_angle, cam_vertical_max),
# (cam_horizontal_min, vertical_mid_angle),
# (cam_horizontal_max, vertical_mid_angle),
# (horizontal_mid_angle, vertical_mid_angle),
# ]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest removing these deprecated code.

Comment on lines 839 to 852
# # [Deprecated] we choose four courners and middle points of four edges.
# # NOTE: the following heuristic camera positions cannot handle some extreme cases.
# # We choose to denstly sample camera positions instead.
# cam_heuristic_angles = [
# (cam_horizontal_min, cam_vertical_min),
# (cam_horizontal_min, cam_vertical_max),
# (cam_horizontal_max, cam_vertical_min),
# (cam_horizontal_max, cam_vertical_max),
# (horizontal_mid_angle, cam_vertical_min),
# (horizontal_mid_angle, cam_vertical_max),
# (cam_horizontal_min, vertical_mid_angle),
# (cam_horizontal_max, vertical_mid_angle),
# (horizontal_mid_angle, vertical_mid_angle),
# ]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, removal is preferred.

@fangchangma fangchangma added the enhancement New feature or request label Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

3 participants