undistort | R Documentation |
undistort
transforms an image to compensate for radial
and tangential lens distortion.
undistort(
image,
camera_matrix,
dist_coefs,
new_camera_matrix = camera_matrix,
target = "new"
)
image |
An |
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
|
target |
The location where the results should be stored. It can take 3 values:
|
If target="new"
, the function returns an Image
object. If target
is an Image
object, the function
returns nothing and modifies that Image
object in place.
Simon Garnier, garnier@njit.edu
calibrateCamera
, getOptimalNewCameraMatrix
,
undistortPoints
# 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.