Saturday, 15 June 2013

c++ - opencv stereo calibration -> warp camera image A into camera image B -


I successfully calibrated internal and external processing using opencv for 2 cameras (lower race camera on the left and A high-raped camera right). I was calibrated with pictures of stereo 2 sets (chess pattern- about 20 images from each camera) Now I have a left.yml, right.yml and a translation rotation. IML is. Now I want to press / distort the correct image so that it looks the same (perspective / distortion / etc) in the form of the left image. I know all the data from calibration, it's just to know how to use the correct opencv function / s to perform the operation - like Background information, remap, or something?

Background information - I'm basically changing the low-resolution RGB camera feed (left), with a high-resolution RGB camera feed (right)

< Div class = "post-text" itemprop = "text">

If I think right, with Open Framework / C ++ Each of your cameras has different distortions, and you want to undervate one of them and apply the distortion of other cameras. What I have done here for the undisputed part is in the past. Using

, you can create distortion / inappropriate map on setup, which will give you two maps as cv: MAT: Objects This function will be used for calibration. The camera receives the matrix and deformation coefficient.

Then you can apply using mapping. Which results will be stored in its second parameter.

After undistorting, you want to apply inverse mapping to apply distortion of other camera. It appears that the particular work you mention will be worked well, but a mapping may be calculated from the .yml files

Whenever it is necessary to make sure that you do not make unnecessary copies, then use it to switch from IJG to matte.

No comments:

Post a Comment