-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
138 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
src/OpenCvSharp/PInvoke/features2d/NativeMethods_features2d_Feature2D.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
using System; | ||
using System.Runtime.InteropServices; | ||
|
||
#pragma warning disable 1591 | ||
|
||
namespace OpenCvSharp | ||
{ | ||
static partial class NativeMethods | ||
{ | ||
// ReSharper disable InconsistentNaming | ||
|
||
[DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl)] | ||
public static extern IntPtr features2d_Ptr_Feature2D_get(IntPtr ptr); | ||
[DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl)] | ||
public static extern void features2d_Ptr_Feature2D_delete(IntPtr ptr); | ||
|
||
[DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl)] | ||
public static extern void features2d_Feature2D_detect_Mat1(IntPtr detector, IntPtr image, IntPtr keypoints, IntPtr mask); | ||
[DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl)] | ||
public static extern void features2d_Feature2D_detect_Mat2(IntPtr detector, IntPtr[] images, int imageLength, IntPtr keypoints, IntPtr[] mask); | ||
[DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl)] | ||
public static extern void features2d_Feature2D_detect_InputArray(IntPtr detector, IntPtr image, IntPtr keypoints, IntPtr mask); | ||
|
||
[DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl)] | ||
public static extern void features2d_Feature2D_compute1(IntPtr obj, IntPtr image, IntPtr keypoints, IntPtr descriptors); | ||
[DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl)] | ||
public static extern void features2d_Feature2D_compute2( | ||
IntPtr detector, IntPtr[] images, int imageLength, | ||
IntPtr keypoints, IntPtr[] descriptors, int descriptorsLength); | ||
|
||
[DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl)] | ||
public static extern void features2d_Feature2D_detectAndCompute( | ||
IntPtr detector, IntPtr image, IntPtr mask, | ||
IntPtr keypoints, IntPtr descriptors, int useProvidedKeypoints); | ||
|
||
[DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl)] | ||
public static extern int features2d_Feature2D_descriptorSize(IntPtr obj); | ||
[DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl)] | ||
public static extern int features2d_Feature2D_descriptorType(IntPtr obj); | ||
[DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl)] | ||
public static extern int features2d_Feature2D_defaultNorm(IntPtr obj); | ||
[DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl)] | ||
public static extern int features2d_Feature2D_empty(IntPtr obj); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters