ocv_keypoints {opencv}R Documentation

OpenCV keypoints

Description

Find key points in images

Usage

ocv_keypoints(
  image,
  method = c("FAST", "Harris"),
  control = ocv_keypoints_options(method, ...),
  ...
)

Arguments

image

an ocv grayscale image object

method

the type of keypoint detection algorithm

control

a list of arguments passed on to the algorithm

...

further arguments passed on to ocv_keypoints_options

FAST algorithm arguments

Harris algorithm arguments

Examples

mona <- ocv_read('https://jeroen.github.io/images/monalisa.jpg')
mona <- ocv_resize(mona, width = 320, height = 477)

# FAST-9
pts <- ocv_keypoints(mona, method = "FAST", type = "TYPE_9_16", threshold = 40)
# Harris
pts <- ocv_keypoints(mona, method = "Harris", maxCorners = 50)

# Convex Hull of points
pts <- ocv_chull(pts)



[Package opencv version 0.4.0 Index]