ORBkeypoints | R Documentation |
ORBkeypoints
finds and describes keypoints in an image
using the ORB method. Keypoints are prominent features that can be used to
quickly match images.
ORBkeypoints(
image,
mask = NULL,
n_features = 500,
scale_factor = 1.2,
n_levels = 8,
edge_threshold = 31,
first_level = 0,
WTA_K = 2,
score_type = "HARRIS",
patch_size = 31,
fast_threshold = 20
)
image |
An |
mask |
A binary |
n_features |
The maximum number of features to retain. |
scale_factor |
The pyramid decimation ratio, always greater than 1
(default: 1.2). |
n_levels |
The number of pyramid decimation levels (default: 8). |
edge_threshold |
The size of the border where the features are not
detected. It should roughly match the |
first_level |
The level of the pyramid to put the source image into (default: 0). Previous levels are filled with upscaled versions of the source image. |
WTA_K |
The number of points that produce each element of the oriented
BRIEF descriptor for a keypoint. |
score_type |
A character string indicating the the scoring method to
use. |
patch_size |
The size of the patch used to compute the the oriented BRIEF descriptor (default: 31). |
fast_threshold |
A threshold for selecting "good enough" keypoints (default: 20) |
A list with two elements:
a matrix containing the following information about each keypoint:
the keypoint orientation in degrees, between 0 and 360, measured relative to the image coordinate system, i.e., clockwise.
the pyramid layer from which the keypoint was extracted.
the x coordinate of the keypoint.
the y coordinate of the keypoint.
the response by which the keypoint have been selected. This can be used for the further sorting or subsampling.
the diameter of the keypoint neighborhood.
a single-channel Image
with each row
corresponding to the BRIEF descriptor of a single keypoint.
Simon Garnier, garnier@njit.edu
matchKeypoints
, goodFeaturesToTrack
,
findTransformORB
dots <- image(system.file("sample_img/dots.jpg", package = "Rvision"))
kp <- ORBkeypoints(dots, n_features = 40000)
plot(dots)
points(kp$keypoints[, c("x", "y")], pch = 19, col = "red")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.