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

Resolution problem with DSO (Undistort::undistort: wrong image size (640 480 instead of 1280 720)) #37

Open
farhanmubasher opened this issue Jun 22, 2018 · 1 comment

Comments

@farhanmubasher
Copy link

Hi all,
I have camera with resolution of 1280x720, and this is my camera.txt calib file:

RadTan 820.3787527 309.05092465 819.24066241 275.53721599 0.03969809 0.35324038 0.01377001 0.00193612 -0.87410867
1280 720
none
1280 720

My vignette.png file is also 1280x720, But when i run dso then it gives me this error:

Undistort::undistort: wrong image size (640 480 instead of 1280 720)

when i replace 1280 720 with 640 480 then dso runs perfectly. so whats wrong here?

can anyone please help me with this.
Thanks .

@NikolausDemmel
Copy link
Collaborator

Make sure that your camera calibration file is parsed correctly. Looks like you have 9 parameters, where DSO seems to expect only 8 (https://github.com/JakobEngel/dso/blob/e59db70710ead30d6b47959f886665ddd9cb4f85/src/util/Undistort.cpp#L330). I suggest debugging into the parsing code and checking what it does.

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