Ask Your Question
0

can I use stereoCalibrate with different image sizes?

asked 2018-01-26 02:17:12 -0600

svenevs gravatar image

updated 2018-01-26 02:18:31 -0600

I am looking at using the stereoCalibrate function, but there is only one imageSize parameter. I have two receivers attached to a fixed rod and want to calibrate both the intrinsics and extrinsics matrix. Ideally, over a sequence of images (planning to use the checkerboard utilities).

The receivers produce different image sizes, though. E.g. Cam1 is w_1 x h_1 and Cam2 is w_2 x h_2, where w_1 != w_2 and h_1 != h_2.

Given the description of the parameter, though:

imageSize – Size of the image used only to initialize intrinsic camera matrix.

This leads me to believe that it is assumed both images have the same dimensions. Given the goal of computation, I don't believe super-sampling one of the images to make them both the same size is a good decision.

So I should just be calibrating each camera individually?

Thanks for any suggestions!

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
1

answered 2018-01-26 08:16:25 -0600

pefue gravatar image

What about first calibrating the two cameras individually, and then in the second step using stereoCalibrate() only to recover R,t and E (use flag CV_CALIB_FIX_INTRINSIC)?

edit flag offensive delete link more

Comments

Hey, that makes a lot of sense! I was looking at solvePnP but getting really turned around as to what inputs would be what, and if I should scale things, and just generally very confused. Your approach is almost certainly the correct approach! I am writing up the code currently, and will confirm / accept when it's going :) Thanks!

svenevs gravatar imagesvenevs ( 2018-01-26 08:35:18 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2018-01-26 02:17:12 -0600

Seen: 1,201 times

Last updated: Jan 26 '18