This tutorial will show you how to convert images captured with a camera model into a different camera model.
In this example we'll use as input a camera from our rig configuration file:
The following two snippets demonstrate how to initialize different output camera models.
contextHandle
is assumed to be previously initialized dwContextHandle_t
.
The rectifier module can be initialized with the camera models that we have just created:
And can be used on images coming from a live sensor or from a recording:
For simplicity, the actual sensor management, including retrieving images from a camera, is omitted in this tutorial.
For more information see Camera Workflow.
Finally all handles can be released:
For the full implementation refer to Video Rectification Sample.
See Rig Configuration for more information on Calibrated Cameras.