主要内容

kazepoints

存储卡兹兴趣点的对象

Description

This object provides the ability to pass data between thedetectKAZEFeaturesextractFeatures功能。您还可以使用此对象来操纵和绘制这些函数返回的数据。请使用该对象进行交互填充点,您可能需要在其中将非kaze兴趣的OINT检测器与Kaze描述符混合。

Creation

Description

example

points= KAZEPoints(location)构造kazepoints来自an的对象M-by-2 array [xy] of location coordinates.

The scalar KAZEPoints object contains many points. Thereforenumel(KAZEPoints)总是返回1. This value can be different than the result oflength(KAZEPoints), which returns the true number of points contained in the object.

example

points= KAZEPoints(location,Name,Value)sets properties using one or more name-value pairs. Enclose each property name in quotes. For example,points = KAZEPoints('Metric',0.0)

Input Arguments

expand all

Location of points, specified as anM-by-2 array of [xy] coordinates.

Properties

expand all

This property is read-only.

Location of keypoints, specified as anM-by-2矩阵。每行都是表单的xy] and represents the location of a keypoint.Mis the number of keypoints. You cannot set this property, use thelocationinput argument instead.

This property is read-only.

Number of keypoints held by the object, specified as a nonnegative integer.

规模, specified as a scalar. The scale sets the size at which the interest points are detected.

Strength of response for the detected points, specified as a numeric value. The KAZE algorithm uses a determinant of an approximated Hessian.

检测到的特征的方向,指定为弧度的角度。角度是从x- 带有原点设置的轴locationinput. TheextractFeaturesfunction sets this property. Do not set it manually.

Object Functions

isempty Determine if points object is empty
length Number of stored points
plot Plot points
selectStrongest Select points with strongest metrics
size Return size of points object
selectUniform Select uniformly distributed subset of feature points

Examples

collapse all

Detect KAZE features and display 10 strongest points.

阅读图像。

I = imread('cameraman.tif');

Detect KAZE features in the image.

点=检测(i);

Select the 10 strongest points.

strongest = selectStrongest(points,10);

Display the selected points.

imshow(I); hold;

Display the location and scale. The size of the circles displayed relate to the scale.

plot(strongest); hold;

Figure contains an axes object. The axes object contains 3 objects of type image, line.

显示MATLAB命令窗口中最强点的[X Y]坐标。

strongest.Location
ans =10x2单基质138.5041 95.8063 139.9253 95.8802 111.8975 48.2950 106.4036 174.1800 44.3964 106.4899 122.0368 65.9064 116.2702 138.2877 123.6542 64.7193 104.2719 76.5821 140.6228 97.9271

检测Kaze功能和显示设置您要绘制的特定Kaze点。

阅读图像。

I = imread('cameraman.tif');

Detect KAZE features in the image.

点=检测(i);

选择并显示检测到的最后5点。

imshow(I); hold; plot(points(end-4:end)); holdoff;

Figure contains an axes object. The axes object contains 3 objects of type image, line.

Extended Capabilities

版本历史

Introduced in R2017b