JiawangBian / sc_depth_pl

SC-Depth (V1, V2, and V3) for Unsupervised Monocular Depth Estimation Webpage:https://jiawangbian.github.io/sc_depth_pl/
GNU General Public License v3.0
438 stars 70 forks source link

RandomScaleCrop intrinsic transform error #52

Closed stihuangyuan closed 1 year ago

stihuangyuan commented 1 year ago

if np.fliplr origin image, there is only changed cx but no fx? is it correct like this ? output_intrinsics[0, 0] = -output_intrinsics[0, 0] # fx' = -fx output_intrinsics[0, 2] = w - output_intrinsics[0, 2] # cx' = w - cx

JiawangBian commented 1 year ago

fx will not be changed if you only flip images.. cx should be changed