cornerSubPix | R Documentation |
cornerSubPix
finds the sub-pixel locations of corners or
radial saddle points in an image from their estimated locations.
cornerSubPix(
image,
corners,
win_size = c(11, 11),
zero_zone = c(-1, -1),
maxit = 30,
eps = 1e-04
)
image |
An 8-bit (8U), single-channel (GRAY) |
corners |
A matrix of estimated corner locations as returned by
|
win_size |
A vector of the half of the side length of the search window.
For example, if |
zero_zone |
A vector of the half of the size of the dead region in the
middle of the search zone. It is used sometimes to avoid possible
singularities in the detection algorithm. The value of |
maxit |
The maximum number of iterations of the detection algorithm (default: 30). |
eps |
The desired accuracy or change in parameters at which the iterative algorithm stops (default: 0.0001). |
A (pprow * ppcol)
x2
matrix. If the matrix is empty then no
chessboard with the indicated dimensions is detected.
Simon Garnier, garnier@njit.edu
Förstner, W., & Gülch, E. (1987). A fast operator for detection and precise location of distinct points, corners and centres of circular features. Proc. ISPRS Intercommission Conference on Fast Processing of Photogrammetric Data, 6, 281–305.
findChessboardCorners
, calibrateCamera
checkerboard <- image(system.file("sample_img/checkerboard6x9.png", package = "Rvision"))
pts <- findChessboardCorners(checkerboard, 6, 9)
checkerboard_gray <- changeColorSpace(checkerboard, "GRAY")
pts_refined <- cornerSubPix(checkerboard_gray, pts)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.