KeyPoint

Objective-C

@interface KeyPoint : NSObject

Swift

class KeyPoint : NSObject

Object representing a point feature found by one of many available keypoint detectors, such as Harris corner detector, FAST, StarDetector, SURF, SIFT etc.

Properties

  • pt

    Coordinates of the keypoint.

    Declaration

    Objective-C

    @property Point2f *_Nonnull pt;

    Swift

    var pt: Point2f { get set }
  • Diameter of the useful keypoint adjacent area.

    Declaration

    Objective-C

    @property float size;

    Swift

    var size: Float { get set }
  • Computed orientation of the keypoint (-1 if not applicable).

    Declaration

    Objective-C

    @property float angle;

    Swift

    var angle: Float { get set }
  • The response, by which the strongest keypoints have been selected. Can be used for further sorting or subsampling.

    Declaration

    Objective-C

    @property float response;

    Swift

    var response: Float { get set }
  • Octave (pyramid layer), from which the keypoint has been extracted.

    Declaration

    Objective-C

    @property int octave;

    Swift

    var octave: Int32 { get set }
  • Object ID, that can be used to cluster keypoints by an object they belong to.

    Declaration

    Objective-C

    @property int classId;

    Swift

    var classId: Int32 { get set }

Constructors

  • Declaration

    Objective-C

    - (instancetype)init;

    Swift

    init()
  • Declaration

    Objective-C

    - (instancetype)initWithX:(float)x y:(float)y size:(float)size angle:(float)angle response:(float)response octave:(int)octave classId:(int)classId;

    Swift

    init(x: Float, y: Float, size: Float, angle: Float, response: Float, octave: Int32, classId: Int32)
  • Declaration

    Objective-C

    - (instancetype)initWithX:(float)x y:(float)y size:(float)size angle:(float)angle response:(float)response octave:(int)octave;

    Swift

    init(x: Float, y: Float, size: Float, angle: Float, response: Float, octave: Int32)
  • Declaration

    Objective-C

    - (instancetype)initWithX:(float)x y:(float)y size:(float)size angle:(float)angle response:(float)response;

    Swift

    init(x: Float, y: Float, size: Float, angle: Float, response: Float)
  • Declaration

    Objective-C

    - (instancetype)initWithX:(float)x y:(float)y size:(float)size angle:(float)angle;

    Swift

    init(x: Float, y: Float, size: Float, angle: Float)
  • Declaration

    Objective-C

    - (instancetype)initWithX:(float)x y:(float)y size:(float)size;

    Swift

    init(x: Float, y: Float, size: Float)

Common Methods

  • Clone object

    Declaration

    Objective-C

    - (nonnull KeyPoint *)clone;

    Swift

    func clone() -> KeyPoint
  • Compare for equality

    Declaration

    Objective-C

    - (BOOL)isEqual:(nullable id)other;

    Swift

    func isEqual(_ other: Any?) -> Bool

    Parameters

    other

    Object to compare

  • Calculate hash value for this object

    Declaration

    Objective-C

    - (NSUInteger)hash;

    Swift

    func hash() -> UInt
  • Returns a string that describes the contents of the object

    Declaration

    Objective-C

    - (nonnull NSString *)description;

    Swift

    func description() -> String