Main Content

selectStrongest

Select points with strongest metrics

Description

example

strongestPoints = selectStrongest(points,N) returns N number of points that have the strongest metrics.

Examples

collapse all

Create a KAZEPoints object holding 50 points.

points = KAZEPoints(ones(50,2),Metric=1:50);

Keep the two strongest features.

points = selectStrongest(points,2)   
points = 
  2x1 KAZEPoints array with properties:

       Location: [2x2 single]
         Metric: [2x1 single]
          Count: 2
          Scale: [2x1 single]
    Orientation: [2x1 single]

Input Arguments

collapse all

Points object,specified as an M-by-2 matrix of M number of [x y] coordinates, or as one of the point feature objects described in Point Feature Types. The object contains information about the feature points detected in the input image. To obtain points, use the appropriate detect function that pairs with the point feature type.

Number of strongest points to select, specified as an integer.

Output Arguments

collapse all

Points object with strongest metrics, returned as an M-by-2 matrix or a points object.

Version History

Introduced in R2017b