MCPcopy Create free account
hub / github.com/apple/ml-pointersect / _set_rect

Method _set_rect

pointersect/inference/structures.py:3940–3961  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3938 self.cam_poses.append(poses)
3939
3940 def _set_rect(self):
3941 assert self.total == 1
3942 for i in range(self.total):
3943 poses = []
3944
3945 # note that the center can be adjusted here
3946 # camera will face the center
3947 Hs_c2w_rect = utils.generate_camera_rect_path(
3948 num_poses=self.n_imgs,
3949 d_to_origin=0,
3950 x_length=7,
3951 y_length=7,
3952 x_center=0,
3953 y_center=2,
3954 center_angles=[-90, 0],
3955 alt_yaxis=True,
3956 )
3957
3958 for j in range(Hs_c2w_rect.size(0)):
3959 poses.append(Hs_c2w_rect[j])
3960
3961 self.cam_poses.append(poses)
3962
3963 def _set_basic(self):
3964 assert 'min_r' in self.params

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected