autonomousvision / unimatch

[TPAMI'23] Unifying Flow, Stereo and Depth Estimation
https://haofeixu.github.io/unimatch/
MIT License
980 stars 102 forks source link

whether there is a disparity factor? #12

Closed zhixiongzuo closed 1 year ago

zhixiongzuo commented 1 year ago

Thanks for your excellent work, I use your code for stereo disparity estimate, but just find there is a gap betweent unimatch and disparity computing from sgbm as well as hitnet. In hitnet there is a param called png_disparity_factor, which can convert disparity to the same scale as sgbm. So is there a disparity factor too ? Thx.

haofeixu commented 1 year ago

No. How do you save the disparity? If you want to access the raw disparity value, make sure the disparity is saved as .pfm format. The saved .png files in our code are for visualization purpose only, they are not raw disparities anymore.

zhixiongzuo commented 1 year ago

Thanks for your timely reply.Yeah, it just happened on .png format disparity , I use .pfm format disparity and it works now.