Defines the rectifier module.
◆ dwRectifierHandle_t
A pointer to the handle representing a rectifier.
This object allows you to rectify an image acquired in one camera model by projecting it into another camera model.
Definition at line 61 of file Rectifier.h.
◆ dwRectifier_getCUDAStream()
Gets the CUDA stream used.
- Parameters
-
| [in] | stream | Uses this CUDA stream. |
| [in] | obj | A pointer to the rectifier handle that is updated. Initialization must not have changed. |
- Returns
- DW_INVALID_ARGUMENT, DW_SUCCESS
◆ dwRectifier_getHomography()
Gets the homography matrix used.
- Parameters
-
| [in] | homography | The homography transformation matrix. |
| [in] | obj | A pointer to the rectifier handle that is updated. Initialization must not have changed. |
- Returns
- DW_INVALID_ARGUMENT, DW_SUCCESS
◆ dwRectifier_initialize()
Initializes a rectifier based on an input and output camera model and a homography.
In particular, the rectifier implements Ray2Pixel_cameraOut( H * Pixel2Ray_cameraIn(Image) ). Per default, the homography is set to identity.
- Parameters
-
| [out] | obj | A pointer to the rectifier handle for the created module. |
| [in] | cameraIn | Model of the input camera. |
| [in] | cameraOut | Model of the output camera. |
| [in] | ctx | Specifies the handler to the context to create the rectifier. |
- Returns
- DW_INVALID_ARGUMENT, DW_SUCCESS
◆ dwRectifier_release()
Releases the rectifier module.
- Parameters
-
| [in] | obj | A pointer to the object handle to release. |
- Returns
- DW_SUCCESS, DW_INVALID_HANDLE, DW_BAD_CAST
- Note
- This method renders the handle unusable.
◆ dwRectifier_reset()
Resets the rectifier module.
- Parameters
-
| [in] | obj | Specifies the rectifier to reset. |
- Returns
- DW_SUCCESS, DW_INVALID_HANDLE, DW_BAD_CAST
◆ dwRectifier_setCUDAStream()
Sets the CUDA stream used.
- Parameters
-
| [in] | stream | The CUDA stream to use. |
| [in] | obj | A pointer to the rectifier handle that is updated. Initialization must not have changed. |
- Returns
- DW_INVALID_ARGUMENT, DW_SUCCESS
◆ dwRectifier_setHomography()
Sets the homography matrix used.
- Parameters
-
| [in] | homography | The new homography transformation matrix. |
| [in] | obj | A pointer to the rectifier handle that is updated. Initialization must not have changed. |
- Returns
- DW_INVALID_ARGUMENT, DW_SUCCESS
◆ dwRectifier_warp()
Warps the image from the input camera model to the model of the output camera.
- Parameters
-
| [out] | outputImage | Pointer to the output image. |
| [in] | inputImage | Pointer to the input image. |
| [in] | obj | A pointer to the rectifier handle that performs the warping. |
- Returns
- DW_INVALID_ARGUMENT, DW_SUCCESS