Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extrinsic_mat is not a file in the archive (Stereo setup - off-axis) #18

Open
celestialtaha opened this issue Aug 7, 2021 · 4 comments

Comments

@celestialtaha
Copy link

Hello,

When trying to get the extrinsic matrix corresponding to the non-pivot camera (in my case the right one). It says 'extrinsic_mat is not a file in the archive '. My setup is off-axis. It seems that it just works for a parallel stereo setup.

@Cartucho
Copy link
Owner

Cartucho commented Aug 8, 2021

Yes, I don't really know how to get extrinsic of an off-axis camera, since I don't really know what off-axis means. I was not able to find a way to get the world transform of the non-pivot camera either, so I hand-coded the parallel transformation using the baseline. I could do the same to the off-axis if I understand what it means.

Also for the disparity calculation, we need the images to be rectified, which in practice would mean that image planes are parallel. So probably for that case I wouldn't be able to generate disparity maps directly without having to rectify the images (which I would do using OpenCV).

@Cartucho
Copy link
Owner

Cartucho commented Aug 8, 2021

I will google a bit more to see if we can get the world-coordinates of the non-pivot camera directly

@Cartucho
Copy link
Owner

Cartucho commented Aug 9, 2021

Hi! So I made some progress on how to get the extrinsic matrix for both cameras but I am still confused about how those models work.

Anyway, the add-on should still work even when we do not know the extrinsic. It should simply send a warning to the user saying that the disparity can only be calculated, for now, in the case of parallel stereo. I will push a commit so that the add-on keeps functioning and shows the warning!

@celestialtaha
Copy link
Author

Hi, I switched to the parallel mode for now. But to help solve this issue, I googled a bit and did not find any kind of geometric model for the transformation between cameras in this mode. If I find something useful, I will comment here.
This link describes the off-axis mode but there is no geometric model provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants