bytedeco / procamcalib

A User-Friendly Method to Calibrate Cameras and Projector-Camera Systems
GNU General Public License v2.0
74 stars 26 forks source link

Using calibration data with OpenCV #22

Closed zekeadam closed 5 years ago

zekeadam commented 5 years ago

Hello,

I'm a bit confused about how to use the resulting values with OpenCV and cant find too much information on the topic. Could you give me some pointers about how to align the cameras image the projectors image using OpenCV? I was experimenting with cv.undistort() and a few other functions but can't figure it out.

Thanks in advance, great software!

saudet commented 5 years ago

There is code that does that as part of JavaCV and ProCamTracker, check it out!

saudet commented 5 years ago

If you have any questions about them, please feel free to ask here.

zekeadam commented 5 years ago

Thank you for the help! Do I get it right that the undistort(double[] xd, double[] k) function undistorts the cameras image then the distort(double[] xu, double[] k) (in javacv/ProjectiveDevice.java) distorts it so its aligned to the projector?

saudet commented 5 years ago

Yes, that's the idea, but those methods are for individual points.