| initUndistortRectifyMap | R Documentation |
initUndistortRectifyMap computes the joint undistortion
and rectification transformation and represents the result in the form of
maps for remap. The undistorted image looks like original, as
if it is captured with a camera using the camera matrix new_camera_matrix
and zero distortion. In case of a monocular camera, new_camera_matrix
is usually equal to camera_matrix, or it can be computed by
getOptimalNewCameraMatrix for a better control over scaling.
initUndistortRectifyMap(
camera_matrix,
dist_coefs,
new_camera_matrix = camera_matrix,
nrow,
ncol
)
camera_matrix |
A 3x3 camera intrinsic matrix as returned by
|
dist_coefs |
A single row matrix with 4, 5, 8, 12 or 14 elements as
returned by |
new_camera_matrix |
A 3x3 camera intrinsic matrix as returned by
|
nrow, ncol |
The number of rows and columns of the undistorted image. |
A 2xN matrix of transformed X/Y coordinates.
Simon Garnier, garnier@njit.edu
undistort, calibrateCamera,
getOptimalNewCameraMatrix
# See the help vignette:
## Not run:
vignette("z8_calib", package = "Rvision")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.