Пример #1
0
 /// <summary>
 /// Create a ORBDetector using the specific values
 /// </summary>
 /// <param name="numberOfFeatures">The number of desired features.</param>
 /// <param name="scaleFactor">Coefficient by which we divide the dimensions from one scale pyramid level to the next.</param>
 /// <param name="nLevels">The number of levels in the scale pyramid.</param>
 /// <param name="firstLevel">The level at which the image is given. If 1, that means we will also look at the image.<paramref name="scaleFactor"/> times bigger</param>
 /// <param name="edgeThreshold">How far from the boundary the points should be.</param>
 /// <param name="WTK_A">How many random points are used to produce each cell of the descriptor (2, 3, 4 ...).</param>
 /// <param name="scoreType">Type of the score to use.</param>
 /// <param name="patchSize">Patch size.</param>
 public CudaORBDetector(
     int numberOfFeatures            = 500,
     float scaleFactor               = 1.2f,
     int nLevels                     = 8,
     int edgeThreshold               = 31,
     int firstLevel                  = 0,
     int WTK_A                       = 2,
     ORBDetector.ScoreType scoreType = ORBDetector.ScoreType.Harris,
     int patchSize                   = 31)
 {
     _ptr = CudaInvoke.cudaORBDetectorCreate(numberOfFeatures, scaleFactor, nLevels, edgeThreshold, firstLevel, WTK_A, scoreType, patchSize);
 }
Пример #2
0
 internal static extern IntPtr cveCudaORBCreate(
     int numberOfFeatures,
     float scaleFactor,
     int nLevels,
     int edgeThreshold,
     int firstLevel,
     int WTA_K,
     ORBDetector.ScoreType scoreType,
     int patchSize,
     int fastThreshold,
     [MarshalAs(CvInvoke.BoolMarshalType)]
     bool blurForDescriptor,
     ref IntPtr feature2D,
     ref IntPtr feature2DAsync);
Пример #3
0
 /// <summary>
 /// Create a ORBDetector using the specific values
 /// </summary>
 /// <param name="numberOfFeatures">The number of desired features.</param>
 /// <param name="scaleFactor">Coefficient by which we divide the dimensions from one scale pyramid level to the next.</param>
 /// <param name="nLevels">The number of levels in the scale pyramid.</param>
 /// <param name="firstLevel">The level at which the image is given. If 1, that means we will also look at the image.<paramref name="scaleFactor"/> times bigger</param>
 /// <param name="edgeThreshold">How far from the boundary the points should be.</param>
 /// <param name="WTK_A">How many random points are used to produce each cell of the descriptor (2, 3, 4 ...).</param>
 /// <param name="scoreType">Type of the score to use.</param>
 /// <param name="patchSize">Patch size.</param>
 public CudaORBDetector(
     int numberOfFeatures            = 500,
     float scaleFactor               = 1.2f,
     int nLevels                     = 8,
     int edgeThreshold               = 31,
     int firstLevel                  = 0,
     int WTK_A                       = 2,
     ORBDetector.ScoreType scoreType = ORBDetector.ScoreType.Harris,
     int patchSize                   = 31,
     int fastThreshold               = 20,
     bool blurForDescriptor          = false)
 {
     _ptr = CudaInvoke.cveCudaORBCreate(
         numberOfFeatures, scaleFactor, nLevels, edgeThreshold, firstLevel, WTK_A, scoreType, patchSize, fastThreshold, blurForDescriptor,
         ref _feature2D, ref _feature2DAsyncPtr);
 }
Пример #4
0
 /// <summary>
 /// Create a ORBDetector using the specific values
 /// </summary>
 /// <param name="numberOfFeatures">The number of desired features. Use 500 for default.</param>
 /// <param name="scaleFactor">Coefficient by which we divide the dimensions from one scale pyramid level to the next. Use 1.2f for default value</param>
 /// <param name="nLevels">The number of levels in the scale pyramid. Use 3 for default value.</param>
 /// <param name="firstLevel">The level at which the image is given. If 1, that means we will also look at the image.<paramref name="scaleFactor"/> times bigger</param>
 /// <param name="edgeThreshold">How far from the boundary the points should be. Use 0 for default.</param>
 /// <param name="WTK_A">How many random points are used to produce each cell of the descriptor (2, 3, 4 ...). Use 2 for default.</param>
 /// <param name="scoreType">Type of the score to use. Use Harris for default.</param>
 /// <param name="patchSize">Patch size. Use 31 for default.</param>
 public GpuORBDetector(int numberOfFeatures, float scaleFactor, int nLevels, int edgeThreshold, int firstLevel, int WTK_A, ORBDetector.ScoreType scoreType, int patchSize)
 {
     _ptr = GpuInvoke.gpuORBDetectorCreate(numberOfFeatures, scaleFactor, nLevels, edgeThreshold, firstLevel, WTK_A, scoreType, patchSize);
 }
Пример #5
0
 internal static extern IntPtr gpuORBDetectorCreate(int numberOfFeatures, float scaleFactor, int nLevels, int edgeThreshold, int firstLevel, int WTA_K, ORBDetector.ScoreType scoreType, int patchSize);