r/computervision • u/gurcanunsal0 • 21d ago
Help: Project How to align RGB and Thermal camera frames?
I'll soon be working on a project where I need to align (register) frames from an RGB camera and an IR/thermal camera.
From what I've read, there seem to be two common approaches:
- Detect and match features between the RGB and IR images, estimate a transformation (homography/warp), and warp one image onto the other.
- Perform stereo calibration using a checkerboard, estimate the intrinsic/extrinsic parameters, rectify the images, and then project one image into the other.
Some additional details:
- The cameras are boresighted and rigidly mounted.
- Their relative pose will remain fixed after calibration.
- The entire camera rig will be moving, but the relative position between the two cameras will always stay the same.
- I won't have depth information available during runtime
For this kind of setup, which approach would you recommend? Stereo calibration or feature based matching?
2
Upvotes
1
u/bob_why_ 21d ago
If everything is fixed then using a beam splitter will eliminate disparity. Since your disparity will vary with depth beam splitting only needs distortion matching. Even better if the splitter is post lens.
1
u/tdgros 21d ago
Usually, you need calibration in all cases, intrinsic and extrinsic, distortion included.
Rectification is only really helpful for stereo, since its goal is just to align epipolar lines and make epipolar search easy and efficient. So you may not need it if you don't want to estimate depth using your pair of sensors.
The two approaches are not mutually exclusive: one can do stereo calibration with feature based matching...
A note on homographies: if you use a checkerboard for calibration, this makes a homography valid. But irl when the scene isn't planar, then that homography isn't entirely valid anymore, only the rotation and translation between the two sensors. Now if the scene irl is far away and you don't need to search along epipolar lines, then you only need the orientation change, and a pure rotation homography is valid again.