티스토리 뷰

# affine transform for feature extraction
img, trans, mask, bbox = self.affine_transform_and_masking(img, mask, cfg.render_img_shape, mask, expand_ratio=cfg.render_bbox_expand_ratio)

K[0, 0] = K[0, 0] * cfg.render_img_shape[1] / bbox[2]
K[1, 1] = K[1, 1] * cfg.render_img_shape[0] / bbox[3]
K[0, 2] = (K[0, 2] - bbox[0]) * cfg.render_img_shape[1] / bbox[2]
K[1, 2] = (K[1, 2] - bbox[1]) * cfg.render_img_shape[0] / bbox[3]

'Research (연구 관련)' 카테고리의 다른 글

column vectors of 3D axes rotation matrix  (0) 2023.01.19
360 rendering  (0) 2023.01.11
Bug of 'conda install pytorch'  (0) 2023.01.03
CO3D, Pytorch3D camera coordinate system  (0) 2022.12.20
fit된 3d bounding box 구하기  (0) 2022.10.22
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함