internal static extern IntPtr cv_features2d_ORB_new( int nfeatures, float scaleFactor, int nlevels, int edgeThreshold, int firstLevel, int WTA_K, OrbScoreType scoreType, int patchSize);
/// <summary> /// Initializes a new instance of the <see cref="Orb"/> class with /// the specified parameters. /// </summary> /// <param name="numFeatures">The maximum number of features to retain.</param> /// <param name="scaleFactor">The pyramid decimation ratio, which must be greater than one.</param> /// <param name="numLevels">The number of pyramid levels.</param> /// <param name="edgeThreshold">The size of the border where features are not detected.</param> /// <param name="firstLevel">This parameter should always be zero in the current implementation.</param> /// <param name="wtaK">The number of points that produce each element of the oriented BRIEF descriptor.</param> /// <param name="scoreType">The type of score used to rank detected features.</param> /// <param name="patchSize">The size of the patch used by each oriented BRIEF descriptor.</param> public Orb( int numFeatures = 500, float scaleFactor = 1.2f, int numLevels = 8, int edgeThreshold = 31, int firstLevel = 0, int wtaK = 2, OrbScoreType scoreType = OrbScoreType.HarrisScore, int patchSize = 31) { var handle = NativeMethods.cv_features2d_ORB_new( numFeatures, scaleFactor, numLevels, edgeThreshold, firstLevel, wtaK, scoreType, patchSize); SetHandle(handle); }