This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Object for storing KAZE interest points


This object provides the ability to pass data between the detectKAZEPoints and extractFeatures functions. You can also use this object to manipulate and plot the data returned by these functions.Use the object to fill points interactively, where you might want to mix a non-KAZE interest oint detector with a KAZE descriptor.



points = KAZEPoints(location)
points = KAZEPoints(I,Name,Value)



points = KAZEPoints(location) constructs a KAZEPoints object from an M-by-2 array [x y] of location coordinates.

The scalar KAZEPoints object contains many points. Therefore numel(KAZEPoints) always returns 1. This value can be different than the result of length(KAZEPoints), which returns the true number of points contained in the object.


1points = KAZEPoints(I,Name,Value) constructs a KAZEPoints object with additional properties specified by one or more Name,Value pair arguments


expand all

Scale, 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.

Orientation of the detected feature, specified as an angle in radians. The angle is measured from the x-axis with the origin set by the location input. The extractFeatures function sets this property. Do not set it manually.

Object Functions

isemptyDetermine if KAZE points object is empty
lengthNumber of stored KAZE points
plotPlot KAZE points
selectStrongestSelect KAZE points with strongest metrics
selectUniformSelect uniformly distributed subset of KAZE feature points


expand all

Detect KAZE features and display 10 strongest points.

Read an image.

I = imread('cameraman.tif');

Detect KAZE features in the image.

points = detectKAZEFeatures(I);

Select the 10 strongest points.

strongest = selectStrongest(points,10);

Display the selected points.

 hold on;

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

hold on;

Display the [x y] coordinates for the strongest points in the MATLAB Command Window.

ans = 10×2 single matrix

  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

Detect KAZE features and display set the specific KAZE points you want to plot.

Read an image.

I = imread('cameraman.tif');

Detect KAZE features in the image.

points = detectKAZEFeatures(I);

Select and display the last 5 points detected.

hold on;
hold off;

Introduced in R2017b