├── src
├── swig
│ ├── gen.bat
│ ├── genSwig
│ │ ├── RenderMode.cs
│ │ ├── HeatMapType.cs
│ │ ├── ElementToRender.cs
│ │ ├── ScaleMode.cs
│ │ ├── OpenPose.cs
│ │ ├── SWIGTYPE_p_float.cs
│ │ ├── SWIGTYPE_p_cv__Mat.cs
│ │ ├── HandExtractorNet.cs
│ │ ├── IntPoint.cs
│ │ ├── FloatPoint.cs
│ │ ├── Rectangle.cs
│ │ ├── HandExtractorCaffe.cs
│ │ ├── FloatArray.cs
│ │ ├── FloatArray2Array.cs
│ │ ├── FloatRectangle2Array.cs
│ │ ├── IntList.cs
│ │ ├── HeatMapTypeList.cs
│ │ ├── FloatRectangle2ArrayList.cs
│ │ └── OpenPosePINVOKE.cs
│ └── interface.i
├── OpenPoseSharp.Test.Windows
│ ├── packages.config
│ ├── App.config
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── OpenPoseSharp.Test.Windows.csproj
│ └── Program.cs
├── OpenPoseSharp.sln
└── OpenPoseSharp
│ └── OpenPoseSharp.csproj
├── .gitmodules
├── README.md
├── .gitattributes
└── .gitignore
/src/swig/gen.bat:
--------------------------------------------------------------------------------
1 | swig -c++ -csharp -namespace OpenPoseSharp -I../../external/openpose/include -outdir genSwig interface.i
--------------------------------------------------------------------------------
/.gitmodules:
--------------------------------------------------------------------------------
1 | [submodule "external/openpose"]
2 | path = external/openpose
3 | url = https://github.com/CMU-Perceptual-Computing-Lab/openpose.git
4 |
--------------------------------------------------------------------------------
/src/OpenPoseSharp.Test.Windows/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # OpenPoseSharp
2 | A C# port of the [OpenPose library](https://github.com/CMU-Perceptual-Computing-Lab/openpose)
3 |
4 | ## Features
5 | - [ ] **C#** Support (WIP)
6 | - [ ] **Xamarin** Support
7 |
--------------------------------------------------------------------------------
/src/OpenPoseSharp.Test.Windows/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/src/swig/genSwig/RenderMode.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | //
4 | // This file was automatically generated by SWIG (http://www.swig.org).
5 | // Version 3.0.12
6 | //
7 | // Do not make changes to this file unless you know what you are doing--modify
8 | // the SWIG interface file instead.
9 | //------------------------------------------------------------------------------
10 |
11 | namespace OpenPoseSharp {
12 |
13 | public enum RenderMode {
14 | None,
15 | Cpu,
16 | Gpu
17 | }
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/src/swig/genSwig/HeatMapType.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | //
4 | // This file was automatically generated by SWIG (http://www.swig.org).
5 | // Version 3.0.12
6 | //
7 | // Do not make changes to this file unless you know what you are doing--modify
8 | // the SWIG interface file instead.
9 | //------------------------------------------------------------------------------
10 |
11 | namespace OpenPoseSharp {
12 |
13 | public enum HeatMapType {
14 | Parts,
15 | Background,
16 | PAFs
17 | }
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/src/swig/genSwig/ElementToRender.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | //
4 | // This file was automatically generated by SWIG (http://www.swig.org).
5 | // Version 3.0.12
6 | //
7 | // Do not make changes to this file unless you know what you are doing--modify
8 | // the SWIG interface file instead.
9 | //------------------------------------------------------------------------------
10 |
11 | namespace OpenPoseSharp {
12 |
13 | public enum ElementToRender {
14 | Skeleton,
15 | Background,
16 | AddKeypoints,
17 | AddPAFs
18 | }
19 |
20 | }
21 |
--------------------------------------------------------------------------------
/src/swig/genSwig/ScaleMode.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | //
4 | // This file was automatically generated by SWIG (http://www.swig.org).
5 | // Version 3.0.12
6 | //
7 | // Do not make changes to this file unless you know what you are doing--modify
8 | // the SWIG interface file instead.
9 | //------------------------------------------------------------------------------
10 |
11 | namespace OpenPoseSharp {
12 |
13 | public enum ScaleMode {
14 | InputResolution,
15 | NetOutputResolution,
16 | OutputResolution,
17 | ZeroToOne,
18 | PlusMinusOne,
19 | UnsignedChar,
20 | NoScale
21 | }
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/src/swig/genSwig/OpenPose.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | //
4 | // This file was automatically generated by SWIG (http://www.swig.org).
5 | // Version 3.0.12
6 | //
7 | // Do not make changes to this file unless you know what you are doing--modify
8 | // the SWIG interface file instead.
9 | //------------------------------------------------------------------------------
10 |
11 | namespace OpenPoseSharp {
12 |
13 | public class OpenPose {
14 | public static string OPEN_POSE_NAME_STRING {
15 | get {
16 | string ret = OpenPosePINVOKE.OPEN_POSE_NAME_STRING_get();
17 | return ret;
18 | }
19 | }
20 |
21 | public static string OPEN_POSE_VERSION_STRING {
22 | get {
23 | string ret = OpenPosePINVOKE.OPEN_POSE_VERSION_STRING_get();
24 | return ret;
25 | }
26 | }
27 |
28 | public static string OPEN_POSE_NAME_AND_VERSION {
29 | get {
30 | string ret = OpenPosePINVOKE.OPEN_POSE_NAME_AND_VERSION_get();
31 | return ret;
32 | }
33 | }
34 |
35 | }
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/src/swig/genSwig/SWIGTYPE_p_float.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | //
4 | // This file was automatically generated by SWIG (http://www.swig.org).
5 | // Version 3.0.12
6 | //
7 | // Do not make changes to this file unless you know what you are doing--modify
8 | // the SWIG interface file instead.
9 | //------------------------------------------------------------------------------
10 |
11 | namespace OpenPoseSharp {
12 |
13 | public class SWIGTYPE_p_float {
14 | private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15 |
16 | internal SWIGTYPE_p_float(global::System.IntPtr cPtr, bool futureUse) {
17 | swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
18 | }
19 |
20 | protected SWIGTYPE_p_float() {
21 | swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
22 | }
23 |
24 | internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_float obj) {
25 | return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
26 | }
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/src/swig/genSwig/SWIGTYPE_p_cv__Mat.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | //
4 | // This file was automatically generated by SWIG (http://www.swig.org).
5 | // Version 3.0.12
6 | //
7 | // Do not make changes to this file unless you know what you are doing--modify
8 | // the SWIG interface file instead.
9 | //------------------------------------------------------------------------------
10 |
11 | namespace OpenPoseSharp {
12 |
13 | public class SWIGTYPE_p_cv__Mat {
14 | public global::System.Runtime.InteropServices.HandleRef swigCPtr;
15 |
16 | public SWIGTYPE_p_cv__Mat(global::System.IntPtr cPtr, bool futureUse) {
17 | swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
18 | }
19 |
20 | protected SWIGTYPE_p_cv__Mat() {
21 | swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
22 | }
23 |
24 | internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_cv__Mat obj) {
25 | return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
26 | }
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/src/OpenPoseSharp.Test.Windows/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 어셈블리에 대한 일반 정보는 다음 특성 집합을 통해
6 | // 제어됩니다. 어셈블리와 관련된 정보를 수정하려면
7 | // 이러한 특성 값을 변경하세요.
8 | [assembly: AssemblyTitle("OpenPoseSharp.Test.Windows")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("OpenPoseSharp.Test.Windows")]
13 | [assembly: AssemblyCopyright("Copyright © 2018")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // ComVisible을 false로 설정하면 이 어셈블리의 형식이 COM 구성 요소에
18 | // 표시되지 않습니다. COM에서 이 어셈블리의 형식에 액세스하려면
19 | // 해당 형식에 대해 ComVisible 특성을 true로 설정하세요.
20 | [assembly: ComVisible(false)]
21 |
22 | // 이 프로젝트가 COM에 노출되는 경우 다음 GUID는 typelib의 ID를 나타냅니다.
23 | [assembly: Guid("a0791479-a5cc-4333-aadb-5dfa0fd45595")]
24 |
25 | // 어셈블리의 버전 정보는 다음 네 가지 값으로 구성됩니다.
26 | //
27 | // 주 버전
28 | // 부 버전
29 | // 빌드 번호
30 | // 수정 버전
31 | //
32 | // 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호가 자동으로
33 | // 지정되도록 할 수 있습니다.
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/src/OpenPoseSharp.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.28010.2036
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenPoseSharp", "OpenPoseSharp\OpenPoseSharp.csproj", "{411EE273-4008-4468-8035-BAD396DDB691}"
7 | EndProject
8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenPoseSharp.Test.Windows", "OpenPoseSharp.Test.Windows\OpenPoseSharp.Test.Windows.csproj", "{A0791479-A5CC-4333-AADB-5DFA0FD45595}"
9 | EndProject
10 | Global
11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
12 | Debug|x64 = Debug|x64
13 | Release|x64 = Release|x64
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {411EE273-4008-4468-8035-BAD396DDB691}.Debug|x64.ActiveCfg = Debug|x64
17 | {411EE273-4008-4468-8035-BAD396DDB691}.Debug|x64.Build.0 = Debug|x64
18 | {411EE273-4008-4468-8035-BAD396DDB691}.Release|x64.ActiveCfg = Release|x64
19 | {411EE273-4008-4468-8035-BAD396DDB691}.Release|x64.Build.0 = Release|x64
20 | {A0791479-A5CC-4333-AADB-5DFA0FD45595}.Debug|x64.ActiveCfg = Debug|x64
21 | {A0791479-A5CC-4333-AADB-5DFA0FD45595}.Debug|x64.Build.0 = Debug|x64
22 | {A0791479-A5CC-4333-AADB-5DFA0FD45595}.Release|x64.ActiveCfg = Release|x64
23 | {A0791479-A5CC-4333-AADB-5DFA0FD45595}.Release|x64.Build.0 = Release|x64
24 | EndGlobalSection
25 | GlobalSection(SolutionProperties) = preSolution
26 | HideSolutionNode = FALSE
27 | EndGlobalSection
28 | GlobalSection(ExtensibilityGlobals) = postSolution
29 | SolutionGuid = {DE161425-8A50-486C-8734-039AD2C7792C}
30 | EndGlobalSection
31 | EndGlobal
32 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Set default behavior to automatically normalize line endings.
3 | ###############################################################################
4 | * text=auto
5 |
6 | ###############################################################################
7 | # Set default behavior for command prompt diff.
8 | #
9 | # This is need for earlier builds of msysgit that does not have it on by
10 | # default for csharp files.
11 | # Note: This is only used by command line
12 | ###############################################################################
13 | #*.cs diff=csharp
14 |
15 | ###############################################################################
16 | # Set the merge driver for project and solution files
17 | #
18 | # Merging from the command prompt will add diff markers to the files if there
19 | # are conflicts (Merging from VS is not affected by the settings below, in VS
20 | # the diff markers are never inserted). Diff markers may cause the following
21 | # file extensions to fail to load in VS. An alternative would be to treat
22 | # these files as binary and thus will always conflict and require user
23 | # intervention with every merge. To do so, just uncomment the entries below
24 | ###############################################################################
25 | #*.sln merge=binary
26 | #*.csproj merge=binary
27 | #*.vbproj merge=binary
28 | #*.vcxproj merge=binary
29 | #*.vcproj merge=binary
30 | #*.dbproj merge=binary
31 | #*.fsproj merge=binary
32 | #*.lsproj merge=binary
33 | #*.wixproj merge=binary
34 | #*.modelproj merge=binary
35 | #*.sqlproj merge=binary
36 | #*.wwaproj merge=binary
37 |
38 | ###############################################################################
39 | # behavior for image files
40 | #
41 | # image files are treated as binary by default.
42 | ###############################################################################
43 | #*.jpg binary
44 | #*.png binary
45 | #*.gif binary
46 |
47 | ###############################################################################
48 | # diff behavior for common document formats
49 | #
50 | # Convert binary document formats to text before diffing them. This feature
51 | # is only available from the command line. Turn it on by uncommenting the
52 | # entries below.
53 | ###############################################################################
54 | #*.doc diff=astextplain
55 | #*.DOC diff=astextplain
56 | #*.docx diff=astextplain
57 | #*.DOCX diff=astextplain
58 | #*.dot diff=astextplain
59 | #*.DOT diff=astextplain
60 | #*.pdf diff=astextplain
61 | #*.PDF diff=astextplain
62 | #*.rtf diff=astextplain
63 | #*.RTF diff=astextplain
64 |
--------------------------------------------------------------------------------
/src/swig/genSwig/HandExtractorNet.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | //
4 | // This file was automatically generated by SWIG (http://www.swig.org).
5 | // Version 3.0.12
6 | //
7 | // Do not make changes to this file unless you know what you are doing--modify
8 | // the SWIG interface file instead.
9 | //------------------------------------------------------------------------------
10 |
11 | namespace OpenPoseSharp {
12 |
13 | public class HandExtractorNet : global::System.IDisposable {
14 | private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15 | protected bool swigCMemOwn;
16 |
17 | internal HandExtractorNet(global::System.IntPtr cPtr, bool cMemoryOwn) {
18 | swigCMemOwn = cMemoryOwn;
19 | swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
20 | }
21 |
22 | internal static global::System.Runtime.InteropServices.HandleRef getCPtr(HandExtractorNet obj) {
23 | return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
24 | }
25 |
26 | ~HandExtractorNet() {
27 | Dispose();
28 | }
29 |
30 | public virtual void Dispose() {
31 | lock(this) {
32 | if (swigCPtr.Handle != global::System.IntPtr.Zero) {
33 | if (swigCMemOwn) {
34 | swigCMemOwn = false;
35 | OpenPosePINVOKE.delete_HandExtractorNet(swigCPtr);
36 | }
37 | swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
38 | }
39 | global::System.GC.SuppressFinalize(this);
40 | }
41 | }
42 |
43 | public void initializationOnThread() {
44 | OpenPosePINVOKE.HandExtractorNet_initializationOnThread(swigCPtr);
45 | }
46 |
47 | public virtual void forwardPass(FloatRectangle2ArrayList handRectangles, SWIGTYPE_p_cv__Mat cvInputData) {
48 | OpenPosePINVOKE.HandExtractorNet_forwardPass(swigCPtr, FloatRectangle2ArrayList.getCPtr(handRectangles), SWIGTYPE_p_cv__Mat.getCPtr(cvInputData));
49 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
50 | }
51 |
52 | public FloatArray2Array getHeatMaps() {
53 | FloatArray2Array ret = new FloatArray2Array(OpenPosePINVOKE.HandExtractorNet_getHeatMaps(swigCPtr), true);
54 | return ret;
55 | }
56 |
57 | public FloatArray2Array getHandKeypoints() {
58 | FloatArray2Array ret = new FloatArray2Array(OpenPosePINVOKE.HandExtractorNet_getHandKeypoints(swigCPtr), true);
59 | return ret;
60 | }
61 |
62 | public bool getEnabled() {
63 | bool ret = OpenPosePINVOKE.HandExtractorNet_getEnabled(swigCPtr);
64 | return ret;
65 | }
66 |
67 | public void setEnabled(bool enabled) {
68 | OpenPosePINVOKE.HandExtractorNet_setEnabled(swigCPtr, enabled);
69 | }
70 |
71 | }
72 |
73 | }
74 |
--------------------------------------------------------------------------------
/src/swig/genSwig/IntPoint.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | //
4 | // This file was automatically generated by SWIG (http://www.swig.org).
5 | // Version 3.0.12
6 | //
7 | // Do not make changes to this file unless you know what you are doing--modify
8 | // the SWIG interface file instead.
9 | //------------------------------------------------------------------------------
10 |
11 | namespace OpenPoseSharp {
12 |
13 | public class IntPoint : global::System.IDisposable {
14 | private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15 | protected bool swigCMemOwn;
16 |
17 | internal IntPoint(global::System.IntPtr cPtr, bool cMemoryOwn) {
18 | swigCMemOwn = cMemoryOwn;
19 | swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
20 | }
21 |
22 | internal static global::System.Runtime.InteropServices.HandleRef getCPtr(IntPoint obj) {
23 | return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
24 | }
25 |
26 | ~IntPoint() {
27 | Dispose();
28 | }
29 |
30 | public virtual void Dispose() {
31 | lock(this) {
32 | if (swigCPtr.Handle != global::System.IntPtr.Zero) {
33 | if (swigCMemOwn) {
34 | swigCMemOwn = false;
35 | OpenPosePINVOKE.delete_IntPoint(swigCPtr);
36 | }
37 | swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
38 | }
39 | global::System.GC.SuppressFinalize(this);
40 | }
41 | }
42 |
43 | public int x {
44 | set {
45 | OpenPosePINVOKE.IntPoint_x_set(swigCPtr, value);
46 | }
47 | get {
48 | int ret = OpenPosePINVOKE.IntPoint_x_get(swigCPtr);
49 | return ret;
50 | }
51 | }
52 |
53 | public int y {
54 | set {
55 | OpenPosePINVOKE.IntPoint_y_set(swigCPtr, value);
56 | }
57 | get {
58 | int ret = OpenPosePINVOKE.IntPoint_y_get(swigCPtr);
59 | return ret;
60 | }
61 | }
62 |
63 | public IntPoint(int x, int y) : this(OpenPosePINVOKE.new_IntPoint__SWIG_0(x, y), true) {
64 | }
65 |
66 | public IntPoint(int x) : this(OpenPosePINVOKE.new_IntPoint__SWIG_1(x), true) {
67 | }
68 |
69 | public IntPoint() : this(OpenPosePINVOKE.new_IntPoint__SWIG_2(), true) {
70 | }
71 |
72 | public IntPoint(IntPoint point) : this(OpenPosePINVOKE.new_IntPoint__SWIG_3(IntPoint.getCPtr(point)), true) {
73 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
74 | }
75 |
76 | public int area() {
77 | int ret = OpenPosePINVOKE.IntPoint_area(swigCPtr);
78 | return ret;
79 | }
80 |
81 | public string toString() {
82 | string ret = OpenPosePINVOKE.IntPoint_toString(swigCPtr);
83 | return ret;
84 | }
85 |
86 | }
87 |
88 | }
89 |
--------------------------------------------------------------------------------
/src/swig/genSwig/FloatPoint.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | //
4 | // This file was automatically generated by SWIG (http://www.swig.org).
5 | // Version 3.0.12
6 | //
7 | // Do not make changes to this file unless you know what you are doing--modify
8 | // the SWIG interface file instead.
9 | //------------------------------------------------------------------------------
10 |
11 | namespace OpenPoseSharp {
12 |
13 | public class FloatPoint : global::System.IDisposable {
14 | private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15 | protected bool swigCMemOwn;
16 |
17 | internal FloatPoint(global::System.IntPtr cPtr, bool cMemoryOwn) {
18 | swigCMemOwn = cMemoryOwn;
19 | swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
20 | }
21 |
22 | internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FloatPoint obj) {
23 | return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
24 | }
25 |
26 | ~FloatPoint() {
27 | Dispose();
28 | }
29 |
30 | public virtual void Dispose() {
31 | lock(this) {
32 | if (swigCPtr.Handle != global::System.IntPtr.Zero) {
33 | if (swigCMemOwn) {
34 | swigCMemOwn = false;
35 | OpenPosePINVOKE.delete_FloatPoint(swigCPtr);
36 | }
37 | swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
38 | }
39 | global::System.GC.SuppressFinalize(this);
40 | }
41 | }
42 |
43 | public float x {
44 | set {
45 | OpenPosePINVOKE.FloatPoint_x_set(swigCPtr, value);
46 | }
47 | get {
48 | float ret = OpenPosePINVOKE.FloatPoint_x_get(swigCPtr);
49 | return ret;
50 | }
51 | }
52 |
53 | public float y {
54 | set {
55 | OpenPosePINVOKE.FloatPoint_y_set(swigCPtr, value);
56 | }
57 | get {
58 | float ret = OpenPosePINVOKE.FloatPoint_y_get(swigCPtr);
59 | return ret;
60 | }
61 | }
62 |
63 | public FloatPoint(float x, float y) : this(OpenPosePINVOKE.new_FloatPoint__SWIG_0(x, y), true) {
64 | }
65 |
66 | public FloatPoint(float x) : this(OpenPosePINVOKE.new_FloatPoint__SWIG_1(x), true) {
67 | }
68 |
69 | public FloatPoint() : this(OpenPosePINVOKE.new_FloatPoint__SWIG_2(), true) {
70 | }
71 |
72 | public FloatPoint(FloatPoint point) : this(OpenPosePINVOKE.new_FloatPoint__SWIG_3(FloatPoint.getCPtr(point)), true) {
73 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
74 | }
75 |
76 | public float area() {
77 | float ret = OpenPosePINVOKE.FloatPoint_area(swigCPtr);
78 | return ret;
79 | }
80 |
81 | public string toString() {
82 | string ret = OpenPosePINVOKE.FloatPoint_toString(swigCPtr);
83 | return ret;
84 | }
85 |
86 | }
87 |
88 | }
89 |
--------------------------------------------------------------------------------
/src/swig/interface.i:
--------------------------------------------------------------------------------
1 | #define OP_API
2 |
3 | %module OpenPose
4 |
5 | %include
6 | %include
7 | %include
8 | %include
9 | %include
10 | %include
11 |
12 | /**
13 | ---------------------------------------------------
14 | Include C++ Headers
15 | ---------------------------------------------------
16 | **/
17 |
18 | %{
19 | #include "openpose/core/macros.hpp"
20 | #include "openpose/core/common.hpp"
21 | #include "openpose/core/enumClasses.hpp"
22 | #include "openpose/core/point.hpp"
23 | #include "openpose/core/array.hpp"
24 | #include "openpose/core/rectangle.hpp"
25 |
26 | #include "openpose/hand/handExtractorNet.hpp"
27 | #include "openpose/hand/handExtractorCaffe.hpp"
28 |
29 | using namespace op;
30 | %}
31 |
32 | /**
33 | ---------------------------------------------------
34 | Convert C++ references to C# references
35 | ---------------------------------------------------
36 | **/
37 |
38 | // -- BOOL --
39 | %typemap(cstype) bool & "/* cstype */ out bool"
40 | %typemap(imtype) bool & "/* imtype */ out bool"
41 | %typemap(csin) bool & %{out $csinput%}
42 |
43 | // -- INT --
44 | %typemap(cstype) int & "/* cstype */ out int"
45 | %typemap(imtype) int & "/* imtype */ out int"
46 | %typemap(csin) int & %{out $csinput%}
47 |
48 | // -- DOUBLE --
49 | %typemap(cstype) double & "/* cstype */ out double"
50 | %typemap(imtype) double & "/* imtype */ out double"
51 | %typemap(csin) double & %{out $csinput%}
52 | //%apply double *OUTPUT { double *result };
53 | //%apply double &OUTPUT { double &result };
54 |
55 | // -- FLOAT --
56 | //%typemap(cstype) float & "/* cstype */ out float"
57 | //%typemap(imtype) float & "/* imtype */ out float"
58 | %typemap(csin) float & %{out $csinput%}
59 | %apply float *OUTPUT { float *result };
60 | %apply float &OUTPUT { float &result };
61 |
62 | // -- FLOAT --
63 | %typemap(cstype) HeatMapType & "/* cstype */ out HeatMapType"
64 | %typemap(imtype) HeatMapType & "/* imtype */ out HeatMapType"
65 | %typemap(csin) HeatMapType & %{out $csinput%}
66 |
67 | %include "openpose/core/macros.hpp"
68 | %include "openpose/core/common.hpp"
69 | %include "openpose/core/enumClasses.hpp"
70 | %include "openpose/core/array.hpp"
71 | %include "openpose/core/point.hpp"
72 | %include "openpose/core/rectangle.hpp"
73 |
74 | %include "openpose/hand/handExtractorNet.hpp"
75 | %include "openpose/hand/handExtractorCaffe.hpp"
76 |
77 | %template(FloatPoint) Point;
78 | %template(IntPoint) Point;
79 |
80 | %template(Rectangle) Rectangle;
81 | %template(IntList) std::vector;
82 | %template(HeatMapTypeList) std::vector;
83 |
84 | %template(FloatArray) Array;
85 | %template(FloatArray2Array) std::array, 2>;
86 |
87 | %template(FloatRectangle2Array) std::array, 2>;
88 | %template(FloatRectangle2ArrayList) std::vector, 2>>;
--------------------------------------------------------------------------------
/src/swig/genSwig/Rectangle.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | //
4 | // This file was automatically generated by SWIG (http://www.swig.org).
5 | // Version 3.0.12
6 | //
7 | // Do not make changes to this file unless you know what you are doing--modify
8 | // the SWIG interface file instead.
9 | //------------------------------------------------------------------------------
10 |
11 | namespace OpenPoseSharp {
12 |
13 | public class Rectangle : global::System.IDisposable {
14 | private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15 | protected bool swigCMemOwn;
16 |
17 | internal Rectangle(global::System.IntPtr cPtr, bool cMemoryOwn) {
18 | swigCMemOwn = cMemoryOwn;
19 | swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
20 | }
21 |
22 | internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Rectangle obj) {
23 | return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
24 | }
25 |
26 | ~Rectangle() {
27 | Dispose();
28 | }
29 |
30 | public virtual void Dispose() {
31 | lock(this) {
32 | if (swigCPtr.Handle != global::System.IntPtr.Zero) {
33 | if (swigCMemOwn) {
34 | swigCMemOwn = false;
35 | OpenPosePINVOKE.delete_Rectangle(swigCPtr);
36 | }
37 | swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
38 | }
39 | global::System.GC.SuppressFinalize(this);
40 | }
41 | }
42 |
43 | public float x {
44 | set {
45 | OpenPosePINVOKE.Rectangle_x_set(swigCPtr, value);
46 | }
47 | get {
48 | float ret = OpenPosePINVOKE.Rectangle_x_get(swigCPtr);
49 | return ret;
50 | }
51 | }
52 |
53 | public float y {
54 | set {
55 | OpenPosePINVOKE.Rectangle_y_set(swigCPtr, value);
56 | }
57 | get {
58 | float ret = OpenPosePINVOKE.Rectangle_y_get(swigCPtr);
59 | return ret;
60 | }
61 | }
62 |
63 | public float width {
64 | set {
65 | OpenPosePINVOKE.Rectangle_width_set(swigCPtr, value);
66 | }
67 | get {
68 | float ret = OpenPosePINVOKE.Rectangle_width_get(swigCPtr);
69 | return ret;
70 | }
71 | }
72 |
73 | public float height {
74 | set {
75 | OpenPosePINVOKE.Rectangle_height_set(swigCPtr, value);
76 | }
77 | get {
78 | float ret = OpenPosePINVOKE.Rectangle_height_get(swigCPtr);
79 | return ret;
80 | }
81 | }
82 |
83 | public Rectangle(float x, float y, float width, float height) : this(OpenPosePINVOKE.new_Rectangle__SWIG_0(x, y, width, height), true) {
84 | }
85 |
86 | public Rectangle(float x, float y, float width) : this(OpenPosePINVOKE.new_Rectangle__SWIG_1(x, y, width), true) {
87 | }
88 |
89 | public Rectangle(float x, float y) : this(OpenPosePINVOKE.new_Rectangle__SWIG_2(x, y), true) {
90 | }
91 |
92 | public Rectangle(float x) : this(OpenPosePINVOKE.new_Rectangle__SWIG_3(x), true) {
93 | }
94 |
95 | public Rectangle() : this(OpenPosePINVOKE.new_Rectangle__SWIG_4(), true) {
96 | }
97 |
98 | public Rectangle(Rectangle rectangle) : this(OpenPosePINVOKE.new_Rectangle__SWIG_5(Rectangle.getCPtr(rectangle)), true) {
99 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
100 | }
101 |
102 | public FloatPoint center() {
103 | FloatPoint ret = new FloatPoint(OpenPosePINVOKE.Rectangle_center(swigCPtr), true);
104 | return ret;
105 | }
106 |
107 | public FloatPoint topLeft() {
108 | FloatPoint ret = new FloatPoint(OpenPosePINVOKE.Rectangle_topLeft(swigCPtr), true);
109 | return ret;
110 | }
111 |
112 | public FloatPoint bottomRight() {
113 | FloatPoint ret = new FloatPoint(OpenPosePINVOKE.Rectangle_bottomRight(swigCPtr), true);
114 | return ret;
115 | }
116 |
117 | public float area() {
118 | float ret = OpenPosePINVOKE.Rectangle_area(swigCPtr);
119 | return ret;
120 | }
121 |
122 | public void recenter(float newWidth, float newHeight) {
123 | OpenPosePINVOKE.Rectangle_recenter(swigCPtr, newWidth, newHeight);
124 | }
125 |
126 | public string toString() {
127 | string ret = OpenPosePINVOKE.Rectangle_toString(swigCPtr);
128 | return ret;
129 | }
130 |
131 | }
132 |
133 | }
134 |
--------------------------------------------------------------------------------
/src/swig/genSwig/HandExtractorCaffe.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | //
4 | // This file was automatically generated by SWIG (http://www.swig.org).
5 | // Version 3.0.12
6 | //
7 | // Do not make changes to this file unless you know what you are doing--modify
8 | // the SWIG interface file instead.
9 | //------------------------------------------------------------------------------
10 |
11 | namespace OpenPoseSharp {
12 |
13 | public class HandExtractorCaffe : HandExtractorNet {
14 | private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15 |
16 | internal HandExtractorCaffe(global::System.IntPtr cPtr, bool cMemoryOwn) : base(OpenPosePINVOKE.HandExtractorCaffe_SWIGUpcast(cPtr), cMemoryOwn) {
17 | swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
18 | }
19 |
20 | internal static global::System.Runtime.InteropServices.HandleRef getCPtr(HandExtractorCaffe obj) {
21 | return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
22 | }
23 |
24 | ~HandExtractorCaffe() {
25 | Dispose();
26 | }
27 |
28 | public override void Dispose() {
29 | lock(this) {
30 | if (swigCPtr.Handle != global::System.IntPtr.Zero) {
31 | if (swigCMemOwn) {
32 | swigCMemOwn = false;
33 | OpenPosePINVOKE.delete_HandExtractorCaffe(swigCPtr);
34 | }
35 | swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
36 | }
37 | global::System.GC.SuppressFinalize(this);
38 | base.Dispose();
39 | }
40 | }
41 |
42 | public HandExtractorCaffe(IntPoint netInputSize, IntPoint netOutputSize, string modelFolder, int gpuId, ushort numberScales, float rangeScales, HeatMapTypeList heatMapTypes, ScaleMode heatMapScale, bool enableGoogleLogging) : this(OpenPosePINVOKE.new_HandExtractorCaffe__SWIG_0(IntPoint.getCPtr(netInputSize), IntPoint.getCPtr(netOutputSize), modelFolder, gpuId, numberScales, rangeScales, HeatMapTypeList.getCPtr(heatMapTypes), (int)heatMapScale, enableGoogleLogging), true) {
43 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
44 | }
45 |
46 | public HandExtractorCaffe(IntPoint netInputSize, IntPoint netOutputSize, string modelFolder, int gpuId, ushort numberScales, float rangeScales, HeatMapTypeList heatMapTypes, ScaleMode heatMapScale) : this(OpenPosePINVOKE.new_HandExtractorCaffe__SWIG_1(IntPoint.getCPtr(netInputSize), IntPoint.getCPtr(netOutputSize), modelFolder, gpuId, numberScales, rangeScales, HeatMapTypeList.getCPtr(heatMapTypes), (int)heatMapScale), true) {
47 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
48 | }
49 |
50 | public HandExtractorCaffe(IntPoint netInputSize, IntPoint netOutputSize, string modelFolder, int gpuId, ushort numberScales, float rangeScales, HeatMapTypeList heatMapTypes) : this(OpenPosePINVOKE.new_HandExtractorCaffe__SWIG_2(IntPoint.getCPtr(netInputSize), IntPoint.getCPtr(netOutputSize), modelFolder, gpuId, numberScales, rangeScales, HeatMapTypeList.getCPtr(heatMapTypes)), true) {
51 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
52 | }
53 |
54 | public HandExtractorCaffe(IntPoint netInputSize, IntPoint netOutputSize, string modelFolder, int gpuId, ushort numberScales, float rangeScales) : this(OpenPosePINVOKE.new_HandExtractorCaffe__SWIG_3(IntPoint.getCPtr(netInputSize), IntPoint.getCPtr(netOutputSize), modelFolder, gpuId, numberScales, rangeScales), true) {
55 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
56 | }
57 |
58 | public HandExtractorCaffe(IntPoint netInputSize, IntPoint netOutputSize, string modelFolder, int gpuId, ushort numberScales) : this(OpenPosePINVOKE.new_HandExtractorCaffe__SWIG_4(IntPoint.getCPtr(netInputSize), IntPoint.getCPtr(netOutputSize), modelFolder, gpuId, numberScales), true) {
59 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
60 | }
61 |
62 | public HandExtractorCaffe(IntPoint netInputSize, IntPoint netOutputSize, string modelFolder, int gpuId) : this(OpenPosePINVOKE.new_HandExtractorCaffe__SWIG_5(IntPoint.getCPtr(netInputSize), IntPoint.getCPtr(netOutputSize), modelFolder, gpuId), true) {
63 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
64 | }
65 |
66 | public virtual void netInitializationOnThread() {
67 | OpenPosePINVOKE.HandExtractorCaffe_netInitializationOnThread(swigCPtr);
68 | }
69 |
70 | public override void forwardPass(FloatRectangle2ArrayList handRectangles, SWIGTYPE_p_cv__Mat cvInputData) {
71 | OpenPosePINVOKE.HandExtractorCaffe_forwardPass(swigCPtr, FloatRectangle2ArrayList.getCPtr(handRectangles), SWIGTYPE_p_cv__Mat.getCPtr(cvInputData));
72 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
73 | }
74 |
75 | }
76 |
77 | }
78 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Exclude build folder
2 | build/
3 |
4 | # Exclude vs files
5 | *.user
6 | *.suo
7 | *.userosscache
8 | *.sln.docstates
9 |
10 | # User-specific files (MonoDevelop/Xamarin Studio)
11 | *.userprefs
12 |
13 | # Build results
14 | [Dd]ebug/
15 | [Dd]ebugPublic/
16 | [Rr]elease/
17 | [Rr]eleases/
18 | x64/
19 | x86/
20 | bld/
21 | [Bb]in/
22 | [Oo]bj/
23 | [Ll]og/
24 |
25 | # Visual Studio 2015 cache/options directory
26 | .vs/
27 | # Uncomment if you have tasks that create the project's static files in wwwroot
28 | #wwwroot/
29 |
30 | # MSTest test Results
31 | [Tt]est[Rr]esult*/
32 | [Bb]uild[Ll]og.*
33 |
34 | # NUNIT
35 | *.VisualState.xml
36 | TestResult.xml
37 |
38 | # Build Results of an ATL Project
39 | [Dd]ebugPS/
40 | [Rr]eleasePS/
41 | dlldata.c
42 |
43 | # DNX
44 | project.lock.json
45 | project.fragment.lock.json
46 | artifacts/
47 |
48 | *_i.c
49 | *_p.c
50 | *_i.h
51 | *.ilk
52 | *.meta
53 | *.obj
54 | *.pch
55 | *.pdb
56 | *.pgc
57 | *.pgd
58 | *.rsp
59 | *.sbr
60 | *.tlb
61 | *.tli
62 | *.tlh
63 | *.tmp
64 | *.tmp_proj
65 | *.log
66 | *.vspscc
67 | *.vssscc
68 | .builds
69 | *.pidb
70 | *.svclog
71 | *.scc
72 |
73 | # Chutzpah Test files
74 | _Chutzpah*
75 |
76 | # Visual C++ cache files
77 | ipch/
78 | *.aps
79 | *.ncb
80 | *.opendb
81 | *.opensdf
82 | *.sdf
83 | *.cachefile
84 | *.VC.db
85 | *.VC.VC.opendb
86 |
87 | # Visual Studio profiler
88 | *.psess
89 | *.vsp
90 | *.vspx
91 | *.sap
92 |
93 | # TFS 2012 Local Workspace
94 | $tf/
95 |
96 | # Guidance Automation Toolkit
97 | *.gpState
98 |
99 | # ReSharper is a .NET coding add-in
100 | _ReSharper*/
101 | *.[Rr]e[Ss]harper
102 | *.DotSettings.user
103 |
104 | # JustCode is a .NET coding add-in
105 | .JustCode
106 |
107 | # TeamCity is a build add-in
108 | _TeamCity*
109 |
110 | # DotCover is a Code Coverage Tool
111 | *.dotCover
112 |
113 | # NCrunch
114 | _NCrunch_*
115 | .*crunch*.local.xml
116 | nCrunchTemp_*
117 |
118 | # MightyMoose
119 | *.mm.*
120 | AutoTest.Net/
121 |
122 | # Web workbench (sass)
123 | .sass-cache/
124 |
125 | # Installshield output folder
126 | [Ee]xpress/
127 |
128 | # DocProject is a documentation generator add-in
129 | DocProject/buildhelp/
130 | DocProject/Help/*.HxT
131 | DocProject/Help/*.HxC
132 | DocProject/Help/*.hhc
133 | DocProject/Help/*.hhk
134 | DocProject/Help/*.hhp
135 | DocProject/Help/Html2
136 | DocProject/Help/html
137 |
138 | # Click-Once directory
139 | publish/
140 |
141 | # Publish Web Output
142 | *.[Pp]ublish.xml
143 | *.azurePubxml
144 | # TODO: Comment the next line if you want to checkin your web deploy settings
145 | # but database connection strings (with potential passwords) will be unencrypted
146 | #*.pubxml
147 | *.publishproj
148 |
149 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
150 | # checkin your Azure Web App publish settings, but sensitive information contained
151 | # in these scripts will be unencrypted
152 | PublishScripts/
153 |
154 | # NuGet Packages
155 | *.nupkg
156 | # The packages folder can be ignored because of Package Restore
157 | **/packages/*
158 | # except build/, which is used as an MSBuild target.
159 | !**/packages/build/
160 | # Uncomment if necessary however generally it will be regenerated when needed
161 | #!**/packages/repositories.config
162 | # NuGet v3's project.json files produces more ignoreable files
163 | *.nuget.props
164 | *.nuget.targets
165 |
166 | # Microsoft Azure Build Output
167 | csx/
168 | *.build.csdef
169 |
170 | # Microsoft Azure Emulator
171 | ecf/
172 | rcf/
173 |
174 | # Windows Store app package directories and files
175 | AppPackages/
176 | BundleArtifacts/
177 | Package.StoreAssociation.xml
178 | _pkginfo.txt
179 |
180 | # Visual Studio cache files
181 | # files ending in .cache can be ignored
182 | *.[Cc]ache
183 | # but keep track of directories ending in .cache
184 | !*.[Cc]ache/
185 |
186 | # Others
187 | ClientBin/
188 | ~$*
189 | *~
190 | *.dbmdl
191 | *.dbproj.schemaview
192 | *.jfm
193 | *.pfx
194 | *.publishsettings
195 | node_modules/
196 | orleans.codegen.cs
197 |
198 | # Since there are multiple workflows, uncomment next line to ignore bower_components
199 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
200 | #bower_components/
201 |
202 | # RIA/Silverlight projects
203 | Generated_Code/
204 |
205 | # Backup & report files from converting an old project file
206 | # to a newer Visual Studio version. Backup files are not needed,
207 | # because we have git ;-)
208 | _UpgradeReport_Files/
209 | Backup*/
210 | UpgradeLog*.XML
211 | UpgradeLog*.htm
212 |
213 | # SQL Server files
214 | *.mdf
215 | *.ldf
216 |
217 | # Business Intelligence projects
218 | *.rdl.data
219 | *.bim.layout
220 | *.bim_*.settings
221 |
222 | # Microsoft Fakes
223 | FakesAssemblies/
224 |
225 | # GhostDoc plugin setting file
226 | *.GhostDoc.xml
227 |
228 | # Node.js Tools for Visual Studio
229 | .ntvs_analysis.dat
230 |
231 | # Visual Studio 6 build log
232 | *.plg
233 |
234 | # Visual Studio 6 workspace options file
235 | *.opt
236 |
237 | # Visual Studio LightSwitch build output
238 | **/*.HTMLClient/GeneratedArtifacts
239 | **/*.DesktopClient/GeneratedArtifacts
240 | **/*.DesktopClient/ModelManifest.xml
241 | **/*.Server/GeneratedArtifacts
242 | **/*.Server/ModelManifest.xml
243 | _Pvt_Extensions
244 |
245 | # Paket dependency manager
246 | .paket/paket.exe
247 | paket-files/
248 |
249 | # FAKE - F# Make
250 | .fake/
251 |
252 | # JetBrains Rider
253 | .idea/
254 | *.sln.iml
255 |
256 | # CodeRush
257 | .cr/
258 |
259 | # Python Tools for Visual Studio (PTVS)
260 | __pycache__/
261 | *.pyc
--------------------------------------------------------------------------------
/src/OpenPoseSharp.Test.Windows/OpenPoseSharp.Test.Windows.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Debug
7 | AnyCPU
8 | {A0791479-A5CC-4333-AADB-5DFA0FD45595}
9 | Exe
10 | OpenPoseSharp.Test.Windows
11 | OpenPoseSharp.Test.Windows
12 | v4.7
13 | 512
14 | true
15 | true
16 |
17 |
18 |
19 |
20 | AnyCPU
21 | true
22 | full
23 | false
24 | bin\Debug\
25 | DEBUG;TRACE
26 | prompt
27 | 4
28 |
29 |
30 | AnyCPU
31 | pdbonly
32 | true
33 | bin\Release\
34 | TRACE
35 | prompt
36 | 4
37 |
38 |
39 | true
40 | bin\x64\Debug\
41 | DEBUG;TRACE
42 | full
43 | x64
44 | prompt
45 | MinimumRecommendedRules.ruleset
46 | true
47 |
48 |
49 | bin\x64\Release\
50 | TRACE
51 | true
52 | pdbonly
53 | x64
54 | prompt
55 | MinimumRecommendedRules.ruleset
56 | true
57 |
58 |
59 |
60 | ..\packages\OpenCvSharp3-AnyCPU.3.4.1.20180830\lib\net46\OpenCvSharp.dll
61 |
62 |
63 | ..\packages\OpenCvSharp3-AnyCPU.3.4.1.20180830\lib\net46\OpenCvSharp.Blob.dll
64 |
65 |
66 | ..\packages\OpenCvSharp3-AnyCPU.3.4.1.20180830\lib\net46\OpenCvSharp.Extensions.dll
67 |
68 |
69 | ..\packages\OpenCvSharp3-AnyCPU.3.4.1.20180830\lib\net46\OpenCvSharp.UserInterface.dll
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 | {411ee273-4008-4468-8035-bad396ddb691}
91 | OpenPoseSharp
92 |
93 |
94 |
95 |
96 |
97 | 이 프로젝트는 이 컴퓨터에 없는 NuGet 패키지를 참조합니다. 해당 패키지를 다운로드하려면 NuGet 패키지 복원을 사용하십시오. 자세한 내용은 http://go.microsoft.com/fwlink/?LinkID=322105를 참조하십시오. 누락된 파일은 {0}입니다.
98 |
99 |
100 |
101 |
--------------------------------------------------------------------------------
/src/swig/genSwig/FloatArray.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | //
4 | // This file was automatically generated by SWIG (http://www.swig.org).
5 | // Version 3.0.12
6 | //
7 | // Do not make changes to this file unless you know what you are doing--modify
8 | // the SWIG interface file instead.
9 | //------------------------------------------------------------------------------
10 |
11 | namespace OpenPoseSharp {
12 |
13 | public class FloatArray : global::System.IDisposable {
14 | private global::System.Runtime.InteropServices.HandleRef swigCPtr;
15 | protected bool swigCMemOwn;
16 |
17 | internal FloatArray(global::System.IntPtr cPtr, bool cMemoryOwn) {
18 | swigCMemOwn = cMemoryOwn;
19 | swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
20 | }
21 |
22 | internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FloatArray obj) {
23 | return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
24 | }
25 |
26 | ~FloatArray() {
27 | Dispose();
28 | }
29 |
30 | public virtual void Dispose() {
31 | lock(this) {
32 | if (swigCPtr.Handle != global::System.IntPtr.Zero) {
33 | if (swigCMemOwn) {
34 | swigCMemOwn = false;
35 | OpenPosePINVOKE.delete_FloatArray(swigCPtr);
36 | }
37 | swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
38 | }
39 | global::System.GC.SuppressFinalize(this);
40 | }
41 | }
42 |
43 | public FloatArray(int size) : this(OpenPosePINVOKE.new_FloatArray__SWIG_0(size), true) {
44 | }
45 |
46 | public FloatArray(IntList sizes) : this(OpenPosePINVOKE.new_FloatArray__SWIG_1(IntList.getCPtr(sizes)), true) {
47 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
48 | }
49 |
50 | public FloatArray() : this(OpenPosePINVOKE.new_FloatArray__SWIG_2(), true) {
51 | }
52 |
53 | public FloatArray(int size, float value) : this(OpenPosePINVOKE.new_FloatArray__SWIG_3(size, value), true) {
54 | }
55 |
56 | public FloatArray(IntList sizes, float value) : this(OpenPosePINVOKE.new_FloatArray__SWIG_4(IntList.getCPtr(sizes), value), true) {
57 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
58 | }
59 |
60 | public FloatArray(FloatArray array) : this(OpenPosePINVOKE.new_FloatArray__SWIG_5(FloatArray.getCPtr(array)), true) {
61 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
62 | }
63 |
64 | public FloatArray clone() {
65 | FloatArray ret = new FloatArray(OpenPosePINVOKE.FloatArray_clone(swigCPtr), true);
66 | return ret;
67 | }
68 |
69 | public void reset(int size) {
70 | OpenPosePINVOKE.FloatArray_reset__SWIG_0(swigCPtr, size);
71 | }
72 |
73 | public void reset(IntList sizes) {
74 | OpenPosePINVOKE.FloatArray_reset__SWIG_1(swigCPtr, IntList.getCPtr(sizes));
75 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
76 | }
77 |
78 | public void reset() {
79 | OpenPosePINVOKE.FloatArray_reset__SWIG_2(swigCPtr);
80 | }
81 |
82 | public void reset(int size, float value) {
83 | OpenPosePINVOKE.FloatArray_reset__SWIG_3(swigCPtr, size, value);
84 | }
85 |
86 | public void reset(IntList sizes, float value) {
87 | OpenPosePINVOKE.FloatArray_reset__SWIG_4(swigCPtr, IntList.getCPtr(sizes), value);
88 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
89 | }
90 |
91 | public void setFrom(SWIGTYPE_p_cv__Mat cvMat) {
92 | OpenPosePINVOKE.FloatArray_setFrom(swigCPtr, SWIGTYPE_p_cv__Mat.getCPtr(cvMat));
93 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
94 | }
95 |
96 | public void setTo(float value) {
97 | OpenPosePINVOKE.FloatArray_setTo(swigCPtr, value);
98 | }
99 |
100 | public bool empty() {
101 | bool ret = OpenPosePINVOKE.FloatArray_empty(swigCPtr);
102 | return ret;
103 | }
104 |
105 | public IntList getSize() {
106 | IntList ret = new IntList(OpenPosePINVOKE.FloatArray_getSize__SWIG_0(swigCPtr), true);
107 | return ret;
108 | }
109 |
110 | public string printSize() {
111 | string ret = OpenPosePINVOKE.FloatArray_printSize(swigCPtr);
112 | return ret;
113 | }
114 |
115 | public int getSize(int index) {
116 | int ret = OpenPosePINVOKE.FloatArray_getSize__SWIG_1(swigCPtr, index);
117 | return ret;
118 | }
119 |
120 | public uint getNumberDimensions() {
121 | uint ret = OpenPosePINVOKE.FloatArray_getNumberDimensions(swigCPtr);
122 | return ret;
123 | }
124 |
125 | public uint getVolume() {
126 | uint ret = OpenPosePINVOKE.FloatArray_getVolume__SWIG_0(swigCPtr);
127 | return ret;
128 | }
129 |
130 | public uint getVolume(int indexA, int indexB) {
131 | uint ret = OpenPosePINVOKE.FloatArray_getVolume__SWIG_1(swigCPtr, indexA, indexB);
132 | return ret;
133 | }
134 |
135 | public SWIGTYPE_p_float getPtr() {
136 | global::System.IntPtr cPtr = OpenPosePINVOKE.FloatArray_getPtr(swigCPtr);
137 | SWIGTYPE_p_float ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_float(cPtr, false);
138 | return ret;
139 | }
140 |
141 | public SWIGTYPE_p_float getConstPtr() {
142 | global::System.IntPtr cPtr = OpenPosePINVOKE.FloatArray_getConstPtr(swigCPtr);
143 | SWIGTYPE_p_float ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_float(cPtr, false);
144 | return ret;
145 | }
146 |
147 | public SWIGTYPE_p_cv__Mat getConstCvMat() {
148 | SWIGTYPE_p_cv__Mat ret = new SWIGTYPE_p_cv__Mat(OpenPosePINVOKE.FloatArray_getConstCvMat(swigCPtr), false);
149 | return ret;
150 | }
151 |
152 | public SWIGTYPE_p_cv__Mat getCvMat() {
153 | SWIGTYPE_p_cv__Mat ret = new SWIGTYPE_p_cv__Mat(OpenPosePINVOKE.FloatArray_getCvMat(swigCPtr), false);
154 | return ret;
155 | }
156 |
157 | public SWIGTYPE_p_float at(int index) {
158 | SWIGTYPE_p_float ret = new SWIGTYPE_p_float(OpenPosePINVOKE.FloatArray_at__SWIG_0(swigCPtr, index), false);
159 | return ret;
160 | }
161 |
162 | public SWIGTYPE_p_float at(IntList indexes) {
163 | SWIGTYPE_p_float ret = new SWIGTYPE_p_float(OpenPosePINVOKE.FloatArray_at__SWIG_2(swigCPtr, IntList.getCPtr(indexes)), false);
164 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
165 | return ret;
166 | }
167 |
168 | public string toString() {
169 | string ret = OpenPosePINVOKE.FloatArray_toString(swigCPtr);
170 | return ret;
171 | }
172 |
173 | }
174 |
175 | }
176 |
--------------------------------------------------------------------------------
/src/OpenPoseSharp.Test.Windows/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.IO;
4 | using System.Linq;
5 | using System.Text;
6 | using System.Threading.Tasks;
7 | using OpenCvSharp;
8 |
9 | namespace OpenPoseSharp.Test.Windows
10 | {
11 | public class HandLandmarkDetector : IDisposable
12 | {
13 | public class LandmarkResult
14 | {
15 | public LandmarkPoint[] LeftHand { get; set; }
16 | public LandmarkPoint[] RightHand { get; set; }
17 | }
18 |
19 | public class LandmarkPoint
20 | {
21 | public double X { get; set; }
22 | public double Y { get; set; }
23 | public double Prob { get; set; }
24 | }
25 |
26 | public class Rect
27 | {
28 | public double X, Y, Width, Height;
29 |
30 | public Rect() { }
31 | public Rect(double x, double y, double w, double h)
32 | {
33 | X = x;
34 | Y = y;
35 | Width = w;
36 | Height = h;
37 | }
38 | }
39 |
40 | public int InputSize { get; set; }
41 | public int GPUID { get; set; }
42 | public string ModelDirectory { get; set; }
43 | public HandExtractorCaffe Extractor { get; protected set; }
44 |
45 | public HandLandmarkDetector(string modelDir, int netSize = 386, int gpuId = 0)
46 | {
47 | ModelDirectory = modelDir;
48 | GPUID = gpuId;
49 | InputSize = netSize;
50 | }
51 |
52 | double[] ParseText(string s)
53 | {
54 | var ret = new List();
55 | var splSpace = s.Split(' ');
56 | foreach (var itemSpace in splSpace)
57 | {
58 | var spl = itemSpace.Split('\n');
59 | foreach (var item in spl)
60 | {
61 | double d;
62 | if (double.TryParse(item.Trim(), out d))
63 | {
64 | ret.Add(d);
65 | }
66 | }
67 | }
68 | return ret.ToArray();
69 | }
70 |
71 | public void Init()
72 | {
73 | Extractor = new HandExtractorCaffe(new IntPoint(InputSize, InputSize), new IntPoint(InputSize, InputSize), ModelDirectory, GPUID);
74 | Extractor.initializationOnThread();
75 | Extractor.netInitializationOnThread();
76 | }
77 |
78 | public LandmarkResult Detect(IntPtr mat, Rect leftRect, Rect rightRect)
79 | {
80 | var e = Extractor;
81 | var leftR = new Rectangle((int)leftRect.X, (int)leftRect.Y, (int)leftRect.Width, (int)leftRect.Height);
82 | var rightR = new Rectangle((int)rightRect.X, (int)rightRect.Y, (int)rightRect.Width, (int)rightRect.Height);
83 | e.forwardPass(new FloatRectangle2ArrayList(new[] { new FloatRectangle2Array(new[] { leftR, rightR }) }), new SWIGTYPE_p_cv__Mat(mat, true));
84 | var fetch = e.getHandKeypoints();
85 |
86 | var left = new List();
87 | var right = new List();
88 | for (int f = 0; f < 2; f += 1)
89 | {
90 | var result = fetch[f];
91 | var str = result.toString();
92 | var parsed = ParseText(str);
93 | double ptX = 0, ptY = 0;
94 | for (int i = 0; i < parsed.Length; i++)
95 | {
96 | switch (i % 3)
97 | {
98 | case 0:
99 | ptX = parsed[i];
100 | break;
101 | case 1:
102 | ptY = parsed[i];
103 | break;
104 | case 2:
105 | var prob = parsed[i];
106 | if (f == 0)
107 | left.Add(new LandmarkPoint() { Prob = prob, X = ptX, Y = ptY });
108 | else
109 | right.Add(new LandmarkPoint() { Prob = prob, X = ptX, Y = ptY });
110 | break;
111 | }
112 | }
113 | }
114 |
115 | var ret = new LandmarkResult()
116 | {
117 | LeftHand = left.ToArray(),
118 | RightHand = right.ToArray()
119 | };
120 | return ret;
121 | }
122 |
123 | public void Dispose()
124 | {
125 | Extractor?.Dispose();
126 | Extractor = null;
127 | }
128 | }
129 |
130 | class Program
131 | {
132 | static void Main(string[] args)
133 | {
134 | Console.WriteLine($"EnvPath: {Environment.CurrentDirectory}");
135 | var modelDir = Path.Combine(Path.GetDirectoryName(Path.GetDirectoryName(Path.GetDirectoryName(Path.GetDirectoryName(Path.GetDirectoryName(Environment.CurrentDirectory))))), "external", "openpose", "models") + Path.DirectorySeparatorChar;
136 | Console.WriteLine($"ModelPath: {modelDir}");
137 |
138 | using (var capture = VideoCapture.FromCamera(0))
139 | using (var e = new HandLandmarkDetector(modelDir, 256))
140 | {
141 | e.Init();
142 |
143 | int w = (int)(capture.FrameWidth * 0.75);
144 | var rect = new Rect(capture.FrameWidth / 2 - w / 2, capture.FrameHeight / 2 - w / 2, w, w);
145 |
146 | while (true)
147 | {
148 | using (var frame = capture.RetrieveMat())
149 | {
150 | Cv2.Rectangle(frame, rect, Scalar.Red, 2);
151 |
152 | var handrect = new HandLandmarkDetector.Rect(rect.X, rect.Y, rect.Width, rect.Height);
153 | var result = e.Detect(frame.CvPtr, handrect, handrect);
154 |
155 | for (int i = 0; i < 2; i++)
156 | {
157 | var marks = i == 0 ? result.LeftHand : result.RightHand;
158 | double prePtY = 0, prePtX = 0;
159 | foreach (var item in marks)
160 | {
161 | double prob = item.Prob, ptX = item.X, ptY = item.Y;
162 | if (prob > 0.15)
163 | {
164 | var probColor = new Scalar(255 * prob, 0, (1 - prob) * 255);
165 | if (prePtY != 0)
166 | Cv2.Line(frame, new Point(ptX, ptY), new Point(prePtX, prePtY), probColor, 3);
167 | Cv2.Rectangle(frame, new Rect((int)ptX - 6, (int)ptY - 6, 12, 12), Scalar.Lime, -1);
168 | Cv2.Rectangle(frame, new Rect((int)ptX - 6, (int)ptY - 6, 12, 12), probColor, 2);
169 | }
170 | Cv2.PutText(frame, (i / 3).ToString(), new Point(ptX, ptY + 1), HersheyFonts.HersheyPlain, 1, Scalar.Black);
171 | Cv2.PutText(frame, (i / 3).ToString(), new Point(ptX, ptY), HersheyFonts.HersheyPlain, 1, Scalar.Cyan);
172 | prePtX = ptX;
173 | prePtY = ptY;
174 | }
175 | }
176 |
177 | Cv2.ImShow("camera", frame);
178 | Cv2.WaitKey(1);
179 | }
180 | }
181 | }
182 | }
183 | }
184 | }
185 |
--------------------------------------------------------------------------------
/src/swig/genSwig/FloatArray2Array.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | //
4 | // This file was automatically generated by SWIG (http://www.swig.org).
5 | // Version 3.0.12
6 | //
7 | // Do not make changes to this file unless you know what you are doing--modify
8 | // the SWIG interface file instead.
9 | //------------------------------------------------------------------------------
10 |
11 | namespace OpenPoseSharp {
12 |
13 | public class FloatArray2Array : global::System.IDisposable, global::System.Collections.IEnumerable
14 | , global::System.Collections.Generic.IEnumerable
15 | {
16 | private global::System.Runtime.InteropServices.HandleRef swigCPtr;
17 | protected bool swigCMemOwn;
18 |
19 | internal FloatArray2Array(global::System.IntPtr cPtr, bool cMemoryOwn) {
20 | swigCMemOwn = cMemoryOwn;
21 | swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
22 | }
23 |
24 | internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FloatArray2Array obj) {
25 | return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
26 | }
27 |
28 | ~FloatArray2Array() {
29 | Dispose();
30 | }
31 |
32 | public virtual void Dispose() {
33 | lock(this) {
34 | if (swigCPtr.Handle != global::System.IntPtr.Zero) {
35 | if (swigCMemOwn) {
36 | swigCMemOwn = false;
37 | OpenPosePINVOKE.delete_FloatArray2Array(swigCPtr);
38 | }
39 | swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
40 | }
41 | global::System.GC.SuppressFinalize(this);
42 | }
43 | }
44 |
45 | public FloatArray2Array(global::System.Collections.ICollection c) : this() {
46 | if (c == null)
47 | throw new global::System.ArgumentNullException("c");
48 | int end = global::System.Math.Min(this.Count, c.Count);
49 | int i = 0;
50 | foreach (FloatArray elem in c) {
51 | if (i >= end)
52 | break;
53 | this[i++] = elem;
54 | }
55 | }
56 |
57 | public int Count {
58 | get {
59 | return (int)size();
60 | }
61 | }
62 |
63 | public FloatArray this[int index] {
64 | get {
65 | return getitem(index);
66 | }
67 | set {
68 | setitem(index, value);
69 | }
70 | }
71 |
72 | public bool IsEmpty {
73 | get {
74 | return empty();
75 | }
76 | }
77 |
78 | public void CopyTo(FloatArray[] array)
79 | {
80 | CopyTo(0, array, 0, this.Count);
81 | }
82 |
83 | public void CopyTo(FloatArray[] array, int arrayIndex)
84 | {
85 | CopyTo(0, array, arrayIndex, this.Count);
86 | }
87 |
88 | public void CopyTo(int index, FloatArray[] array, int arrayIndex, int count)
89 | {
90 | if (array == null)
91 | throw new global::System.ArgumentNullException("array");
92 | if (index < 0)
93 | throw new global::System.ArgumentOutOfRangeException("index", "Value is less than zero");
94 | if (arrayIndex < 0)
95 | throw new global::System.ArgumentOutOfRangeException("arrayIndex", "Value is less than zero");
96 | if (count < 0)
97 | throw new global::System.ArgumentOutOfRangeException("count", "Value is less than zero");
98 | if (array.Rank > 1)
99 | throw new global::System.ArgumentException("Multi dimensional array.", "array");
100 | if (index+count > this.Count || arrayIndex+count > array.Length)
101 | throw new global::System.ArgumentException("Number of elements to copy is too large.");
102 | for (int i=0; i global::System.Collections.Generic.IEnumerable.GetEnumerator() {
107 | return new FloatArray2ArrayEnumerator(this);
108 | }
109 |
110 | global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() {
111 | return new FloatArray2ArrayEnumerator(this);
112 | }
113 |
114 | public FloatArray2ArrayEnumerator GetEnumerator() {
115 | return new FloatArray2ArrayEnumerator(this);
116 | }
117 |
118 | // Type-safe enumerator
119 | /// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown
120 | /// whenever the collection is modified. This has been done for changes in the size of the
121 | /// collection but not when one of the elements of the collection is modified as it is a bit
122 | /// tricky to detect unmanaged code that modifies the collection under our feet.
123 | public sealed class FloatArray2ArrayEnumerator : global::System.Collections.IEnumerator
124 | , global::System.Collections.Generic.IEnumerator
125 | {
126 | private FloatArray2Array collectionRef;
127 | private int currentIndex;
128 | private object currentObject;
129 | private int currentSize;
130 |
131 | public FloatArray2ArrayEnumerator(FloatArray2Array collection) {
132 | collectionRef = collection;
133 | currentIndex = -1;
134 | currentObject = null;
135 | currentSize = collectionRef.Count;
136 | }
137 |
138 | // Type-safe iterator Current
139 | public FloatArray Current {
140 | get {
141 | if (currentIndex == -1)
142 | throw new global::System.InvalidOperationException("Enumeration not started.");
143 | if (currentIndex > currentSize - 1)
144 | throw new global::System.InvalidOperationException("Enumeration finished.");
145 | if (currentObject == null)
146 | throw new global::System.InvalidOperationException("Collection modified.");
147 | return (FloatArray)currentObject;
148 | }
149 | }
150 |
151 | // Type-unsafe IEnumerator.Current
152 | object global::System.Collections.IEnumerator.Current {
153 | get {
154 | return Current;
155 | }
156 | }
157 |
158 | public bool MoveNext() {
159 | int size = collectionRef.Count;
160 | bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
161 | if (moveOkay) {
162 | currentIndex++;
163 | currentObject = collectionRef[currentIndex];
164 | } else {
165 | currentObject = null;
166 | }
167 | return moveOkay;
168 | }
169 |
170 | public void Reset() {
171 | currentIndex = -1;
172 | currentObject = null;
173 | if (collectionRef.Count != currentSize) {
174 | throw new global::System.InvalidOperationException("Collection modified.");
175 | }
176 | }
177 |
178 | public void Dispose() {
179 | currentIndex = -1;
180 | currentObject = null;
181 | }
182 | }
183 |
184 | public FloatArray2Array() : this(OpenPosePINVOKE.new_FloatArray2Array__SWIG_0(), true) {
185 | }
186 |
187 | public FloatArray2Array(FloatArray2Array other) : this(OpenPosePINVOKE.new_FloatArray2Array__SWIG_1(FloatArray2Array.getCPtr(other)), true) {
188 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
189 | }
190 |
191 | private uint size() {
192 | uint ret = OpenPosePINVOKE.FloatArray2Array_size(swigCPtr);
193 | return ret;
194 | }
195 |
196 | private bool empty() {
197 | bool ret = OpenPosePINVOKE.FloatArray2Array_empty(swigCPtr);
198 | return ret;
199 | }
200 |
201 | public void Fill(FloatArray val) {
202 | OpenPosePINVOKE.FloatArray2Array_Fill(swigCPtr, FloatArray.getCPtr(val));
203 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
204 | }
205 |
206 | public void Swap(FloatArray2Array other) {
207 | OpenPosePINVOKE.FloatArray2Array_Swap(swigCPtr, FloatArray2Array.getCPtr(other));
208 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
209 | }
210 |
211 | private FloatArray getitemcopy(int index) {
212 | FloatArray ret = new FloatArray(OpenPosePINVOKE.FloatArray2Array_getitemcopy(swigCPtr, index), true);
213 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
214 | return ret;
215 | }
216 |
217 | private FloatArray getitem(int index) {
218 | FloatArray ret = new FloatArray(OpenPosePINVOKE.FloatArray2Array_getitem(swigCPtr, index), false);
219 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
220 | return ret;
221 | }
222 |
223 | private void setitem(int index, FloatArray val) {
224 | OpenPosePINVOKE.FloatArray2Array_setitem(swigCPtr, index, FloatArray.getCPtr(val));
225 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
226 | }
227 |
228 | public void Reverse() {
229 | OpenPosePINVOKE.FloatArray2Array_Reverse__SWIG_0(swigCPtr);
230 | }
231 |
232 | public void Reverse(int index, int count) {
233 | OpenPosePINVOKE.FloatArray2Array_Reverse__SWIG_1(swigCPtr, index, count);
234 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
235 | }
236 |
237 | }
238 |
239 | }
240 |
--------------------------------------------------------------------------------
/src/swig/genSwig/FloatRectangle2Array.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | //
4 | // This file was automatically generated by SWIG (http://www.swig.org).
5 | // Version 3.0.12
6 | //
7 | // Do not make changes to this file unless you know what you are doing--modify
8 | // the SWIG interface file instead.
9 | //------------------------------------------------------------------------------
10 |
11 | namespace OpenPoseSharp {
12 |
13 | public class FloatRectangle2Array : global::System.IDisposable, global::System.Collections.IEnumerable
14 | , global::System.Collections.Generic.IEnumerable
15 | {
16 | private global::System.Runtime.InteropServices.HandleRef swigCPtr;
17 | protected bool swigCMemOwn;
18 |
19 | internal FloatRectangle2Array(global::System.IntPtr cPtr, bool cMemoryOwn) {
20 | swigCMemOwn = cMemoryOwn;
21 | swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
22 | }
23 |
24 | internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FloatRectangle2Array obj) {
25 | return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
26 | }
27 |
28 | ~FloatRectangle2Array() {
29 | Dispose();
30 | }
31 |
32 | public virtual void Dispose() {
33 | lock(this) {
34 | if (swigCPtr.Handle != global::System.IntPtr.Zero) {
35 | if (swigCMemOwn) {
36 | swigCMemOwn = false;
37 | OpenPosePINVOKE.delete_FloatRectangle2Array(swigCPtr);
38 | }
39 | swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
40 | }
41 | global::System.GC.SuppressFinalize(this);
42 | }
43 | }
44 |
45 | public FloatRectangle2Array(global::System.Collections.ICollection c) : this() {
46 | if (c == null)
47 | throw new global::System.ArgumentNullException("c");
48 | int end = global::System.Math.Min(this.Count, c.Count);
49 | int i = 0;
50 | foreach (Rectangle elem in c) {
51 | if (i >= end)
52 | break;
53 | this[i++] = elem;
54 | }
55 | }
56 |
57 | public int Count {
58 | get {
59 | return (int)size();
60 | }
61 | }
62 |
63 | public Rectangle this[int index] {
64 | get {
65 | return getitem(index);
66 | }
67 | set {
68 | setitem(index, value);
69 | }
70 | }
71 |
72 | public bool IsEmpty {
73 | get {
74 | return empty();
75 | }
76 | }
77 |
78 | public void CopyTo(Rectangle[] array)
79 | {
80 | CopyTo(0, array, 0, this.Count);
81 | }
82 |
83 | public void CopyTo(Rectangle[] array, int arrayIndex)
84 | {
85 | CopyTo(0, array, arrayIndex, this.Count);
86 | }
87 |
88 | public void CopyTo(int index, Rectangle[] array, int arrayIndex, int count)
89 | {
90 | if (array == null)
91 | throw new global::System.ArgumentNullException("array");
92 | if (index < 0)
93 | throw new global::System.ArgumentOutOfRangeException("index", "Value is less than zero");
94 | if (arrayIndex < 0)
95 | throw new global::System.ArgumentOutOfRangeException("arrayIndex", "Value is less than zero");
96 | if (count < 0)
97 | throw new global::System.ArgumentOutOfRangeException("count", "Value is less than zero");
98 | if (array.Rank > 1)
99 | throw new global::System.ArgumentException("Multi dimensional array.", "array");
100 | if (index+count > this.Count || arrayIndex+count > array.Length)
101 | throw new global::System.ArgumentException("Number of elements to copy is too large.");
102 | for (int i=0; i global::System.Collections.Generic.IEnumerable.GetEnumerator() {
107 | return new FloatRectangle2ArrayEnumerator(this);
108 | }
109 |
110 | global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() {
111 | return new FloatRectangle2ArrayEnumerator(this);
112 | }
113 |
114 | public FloatRectangle2ArrayEnumerator GetEnumerator() {
115 | return new FloatRectangle2ArrayEnumerator(this);
116 | }
117 |
118 | // Type-safe enumerator
119 | /// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown
120 | /// whenever the collection is modified. This has been done for changes in the size of the
121 | /// collection but not when one of the elements of the collection is modified as it is a bit
122 | /// tricky to detect unmanaged code that modifies the collection under our feet.
123 | public sealed class FloatRectangle2ArrayEnumerator : global::System.Collections.IEnumerator
124 | , global::System.Collections.Generic.IEnumerator
125 | {
126 | private FloatRectangle2Array collectionRef;
127 | private int currentIndex;
128 | private object currentObject;
129 | private int currentSize;
130 |
131 | public FloatRectangle2ArrayEnumerator(FloatRectangle2Array collection) {
132 | collectionRef = collection;
133 | currentIndex = -1;
134 | currentObject = null;
135 | currentSize = collectionRef.Count;
136 | }
137 |
138 | // Type-safe iterator Current
139 | public Rectangle Current {
140 | get {
141 | if (currentIndex == -1)
142 | throw new global::System.InvalidOperationException("Enumeration not started.");
143 | if (currentIndex > currentSize - 1)
144 | throw new global::System.InvalidOperationException("Enumeration finished.");
145 | if (currentObject == null)
146 | throw new global::System.InvalidOperationException("Collection modified.");
147 | return (Rectangle)currentObject;
148 | }
149 | }
150 |
151 | // Type-unsafe IEnumerator.Current
152 | object global::System.Collections.IEnumerator.Current {
153 | get {
154 | return Current;
155 | }
156 | }
157 |
158 | public bool MoveNext() {
159 | int size = collectionRef.Count;
160 | bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
161 | if (moveOkay) {
162 | currentIndex++;
163 | currentObject = collectionRef[currentIndex];
164 | } else {
165 | currentObject = null;
166 | }
167 | return moveOkay;
168 | }
169 |
170 | public void Reset() {
171 | currentIndex = -1;
172 | currentObject = null;
173 | if (collectionRef.Count != currentSize) {
174 | throw new global::System.InvalidOperationException("Collection modified.");
175 | }
176 | }
177 |
178 | public void Dispose() {
179 | currentIndex = -1;
180 | currentObject = null;
181 | }
182 | }
183 |
184 | public FloatRectangle2Array() : this(OpenPosePINVOKE.new_FloatRectangle2Array__SWIG_0(), true) {
185 | }
186 |
187 | public FloatRectangle2Array(FloatRectangle2Array other) : this(OpenPosePINVOKE.new_FloatRectangle2Array__SWIG_1(FloatRectangle2Array.getCPtr(other)), true) {
188 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
189 | }
190 |
191 | private uint size() {
192 | uint ret = OpenPosePINVOKE.FloatRectangle2Array_size(swigCPtr);
193 | return ret;
194 | }
195 |
196 | private bool empty() {
197 | bool ret = OpenPosePINVOKE.FloatRectangle2Array_empty(swigCPtr);
198 | return ret;
199 | }
200 |
201 | public void Fill(Rectangle val) {
202 | OpenPosePINVOKE.FloatRectangle2Array_Fill(swigCPtr, Rectangle.getCPtr(val));
203 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
204 | }
205 |
206 | public void Swap(FloatRectangle2Array other) {
207 | OpenPosePINVOKE.FloatRectangle2Array_Swap(swigCPtr, FloatRectangle2Array.getCPtr(other));
208 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
209 | }
210 |
211 | private Rectangle getitemcopy(int index) {
212 | Rectangle ret = new Rectangle(OpenPosePINVOKE.FloatRectangle2Array_getitemcopy(swigCPtr, index), true);
213 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
214 | return ret;
215 | }
216 |
217 | private Rectangle getitem(int index) {
218 | Rectangle ret = new Rectangle(OpenPosePINVOKE.FloatRectangle2Array_getitem(swigCPtr, index), false);
219 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
220 | return ret;
221 | }
222 |
223 | private void setitem(int index, Rectangle val) {
224 | OpenPosePINVOKE.FloatRectangle2Array_setitem(swigCPtr, index, Rectangle.getCPtr(val));
225 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
226 | }
227 |
228 | public void Reverse() {
229 | OpenPosePINVOKE.FloatRectangle2Array_Reverse__SWIG_0(swigCPtr);
230 | }
231 |
232 | public void Reverse(int index, int count) {
233 | OpenPosePINVOKE.FloatRectangle2Array_Reverse__SWIG_1(swigCPtr, index, count);
234 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
235 | }
236 |
237 | }
238 |
239 | }
240 |
--------------------------------------------------------------------------------
/src/OpenPoseSharp/OpenPoseSharp.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {411EE273-4008-4468-8035-BAD396DDB691}
8 | Library
9 | OpenPoseSharp
10 | OpenPoseSharp
11 | v4.7
12 | 512
13 | true
14 | true
15 |
16 |
17 | AnyCPU
18 | true
19 | full
20 | false
21 | bin\Debug\
22 | DEBUG;TRACE
23 | prompt
24 | 4
25 |
26 |
27 | AnyCPU
28 | pdbonly
29 | true
30 | bin\Release\
31 | TRACE
32 | prompt
33 | 4
34 |
35 |
36 |
37 |
38 |
39 | true
40 | bin\x64\Debug\
41 | DEBUG;TRACE
42 | full
43 | x64
44 | prompt
45 | MinimumRecommendedRules.ruleset
46 |
47 |
48 | bin\x64\Release\
49 | TRACE
50 | true
51 | pdbonly
52 | x64
53 | prompt
54 | MinimumRecommendedRules.ruleset
55 |
56 |
57 |
58 | gen\ElementToRender.cs
59 |
60 |
61 | gen\FloatArray.cs
62 |
63 |
64 | gen\FloatArray2Array.cs
65 |
66 |
67 | gen\FloatPoint.cs
68 |
69 |
70 | gen\FloatRectangle2Array.cs
71 |
72 |
73 | gen\FloatRectangle2ArrayList.cs
74 |
75 |
76 | gen\HandExtractorCaffe.cs
77 |
78 |
79 | gen\HandExtractorNet.cs
80 |
81 |
82 | gen\HeatMapType.cs
83 |
84 |
85 | gen\HeatMapTypeList.cs
86 |
87 |
88 | gen\IntList.cs
89 |
90 |
91 | gen\IntPoint.cs
92 |
93 |
94 | gen\OpenPose.cs
95 |
96 |
97 | gen\OpenPosePINVOKE.cs
98 |
99 |
100 | gen\Rectangle.cs
101 |
102 |
103 | gen\RenderMode.cs
104 |
105 |
106 | gen\ScaleMode.cs
107 |
108 |
109 | gen\SWIGTYPE_p_cv__Mat.cs
110 |
111 |
112 | gen\SWIGTYPE_p_float.cs
113 |
114 |
115 |
116 |
117 | boost_chrono-vc140-mt-1_61.dll
118 | PreserveNewest
119 |
120 |
121 | boost_filesystem-vc140-mt-1_61.dll
122 | PreserveNewest
123 |
124 |
125 | boost_python-vc140-mt-1_61.dll
126 | PreserveNewest
127 |
128 |
129 | boost_system-vc140-mt-1_61.dll
130 | PreserveNewest
131 |
132 |
133 | boost_system-vc140-mt-gd-1_61.dll
134 | PreserveNewest
135 |
136 |
137 | boost_thread-vc140-mt-1_61.dll
138 | PreserveNewest
139 |
140 |
141 | caffe.dll
142 | PreserveNewest
143 |
144 |
145 | caffehdf5.dll
146 | PreserveNewest
147 |
148 |
149 | caffehdf5_hl.dll
150 | PreserveNewest
151 |
152 |
153 | caffezlib1.dll
154 | PreserveNewest
155 |
156 |
157 | cublas64_80.dll
158 | PreserveNewest
159 |
160 |
161 | cudart64_80.dll
162 | PreserveNewest
163 |
164 |
165 | cudnn64_5.dll
166 | PreserveNewest
167 |
168 |
169 | curand64_80.dll
170 | PreserveNewest
171 |
172 |
173 | gflags.dll
174 | PreserveNewest
175 |
176 |
177 | gflagsd.dll
178 | PreserveNewest
179 |
180 |
181 | glog.dll
182 | PreserveNewest
183 |
184 |
185 | glogd.dll
186 | PreserveNewest
187 |
188 |
189 | libgcc_s_seh-1.dll
190 | PreserveNewest
191 |
192 |
193 | libgfortran-3.dll
194 | PreserveNewest
195 |
196 |
197 | libopenblas.dll
198 | PreserveNewest
199 |
200 |
201 | libquadmath-0.dll
202 | PreserveNewest
203 |
204 |
205 | opencv_core310.dll
206 | PreserveNewest
207 |
208 |
209 | opencv_ffmpeg310_64.dll
210 | PreserveNewest
211 |
212 |
213 | opencv_imgcodecs310.dll
214 | PreserveNewest
215 |
216 |
217 | opencv_imgproc310.dll
218 | PreserveNewest
219 |
220 |
221 | opencv_world310.dll
222 | PreserveNewest
223 |
224 |
225 | opencv_world310d.dll
226 | PreserveNewest
227 |
228 |
229 | python27.dll
230 | PreserveNewest
231 |
232 |
233 | VCRUNTIME140.dll
234 | PreserveNewest
235 |
236 |
237 | openpose.dll
238 | Always
239 |
240 |
241 |
242 |
--------------------------------------------------------------------------------
/src/swig/genSwig/IntList.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | //
4 | // This file was automatically generated by SWIG (http://www.swig.org).
5 | // Version 3.0.12
6 | //
7 | // Do not make changes to this file unless you know what you are doing--modify
8 | // the SWIG interface file instead.
9 | //------------------------------------------------------------------------------
10 |
11 | namespace OpenPoseSharp {
12 |
13 | public class IntList : global::System.IDisposable, global::System.Collections.IEnumerable
14 | , global::System.Collections.Generic.IList
15 | {
16 | private global::System.Runtime.InteropServices.HandleRef swigCPtr;
17 | protected bool swigCMemOwn;
18 |
19 | internal IntList(global::System.IntPtr cPtr, bool cMemoryOwn) {
20 | swigCMemOwn = cMemoryOwn;
21 | swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
22 | }
23 |
24 | internal static global::System.Runtime.InteropServices.HandleRef getCPtr(IntList obj) {
25 | return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
26 | }
27 |
28 | ~IntList() {
29 | Dispose();
30 | }
31 |
32 | public virtual void Dispose() {
33 | lock(this) {
34 | if (swigCPtr.Handle != global::System.IntPtr.Zero) {
35 | if (swigCMemOwn) {
36 | swigCMemOwn = false;
37 | OpenPosePINVOKE.delete_IntList(swigCPtr);
38 | }
39 | swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
40 | }
41 | global::System.GC.SuppressFinalize(this);
42 | }
43 | }
44 |
45 | public IntList(global::System.Collections.ICollection c) : this() {
46 | if (c == null)
47 | throw new global::System.ArgumentNullException("c");
48 | foreach (int element in c) {
49 | this.Add(element);
50 | }
51 | }
52 |
53 | public bool IsFixedSize {
54 | get {
55 | return false;
56 | }
57 | }
58 |
59 | public bool IsReadOnly {
60 | get {
61 | return false;
62 | }
63 | }
64 |
65 | public int this[int index] {
66 | get {
67 | return getitem(index);
68 | }
69 | set {
70 | setitem(index, value);
71 | }
72 | }
73 |
74 | public int Capacity {
75 | get {
76 | return (int)capacity();
77 | }
78 | set {
79 | if (value < size())
80 | throw new global::System.ArgumentOutOfRangeException("Capacity");
81 | reserve((uint)value);
82 | }
83 | }
84 |
85 | public int Count {
86 | get {
87 | return (int)size();
88 | }
89 | }
90 |
91 | public bool IsSynchronized {
92 | get {
93 | return false;
94 | }
95 | }
96 |
97 | public void CopyTo(int[] array)
98 | {
99 | CopyTo(0, array, 0, this.Count);
100 | }
101 |
102 | public void CopyTo(int[] array, int arrayIndex)
103 | {
104 | CopyTo(0, array, arrayIndex, this.Count);
105 | }
106 |
107 | public void CopyTo(int index, int[] array, int arrayIndex, int count)
108 | {
109 | if (array == null)
110 | throw new global::System.ArgumentNullException("array");
111 | if (index < 0)
112 | throw new global::System.ArgumentOutOfRangeException("index", "Value is less than zero");
113 | if (arrayIndex < 0)
114 | throw new global::System.ArgumentOutOfRangeException("arrayIndex", "Value is less than zero");
115 | if (count < 0)
116 | throw new global::System.ArgumentOutOfRangeException("count", "Value is less than zero");
117 | if (array.Rank > 1)
118 | throw new global::System.ArgumentException("Multi dimensional array.", "array");
119 | if (index+count > this.Count || arrayIndex+count > array.Length)
120 | throw new global::System.ArgumentException("Number of elements to copy is too large.");
121 | for (int i=0; i global::System.Collections.Generic.IEnumerable.GetEnumerator() {
126 | return new IntListEnumerator(this);
127 | }
128 |
129 | global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() {
130 | return new IntListEnumerator(this);
131 | }
132 |
133 | public IntListEnumerator GetEnumerator() {
134 | return new IntListEnumerator(this);
135 | }
136 |
137 | // Type-safe enumerator
138 | /// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown
139 | /// whenever the collection is modified. This has been done for changes in the size of the
140 | /// collection but not when one of the elements of the collection is modified as it is a bit
141 | /// tricky to detect unmanaged code that modifies the collection under our feet.
142 | public sealed class IntListEnumerator : global::System.Collections.IEnumerator
143 | , global::System.Collections.Generic.IEnumerator
144 | {
145 | private IntList collectionRef;
146 | private int currentIndex;
147 | private object currentObject;
148 | private int currentSize;
149 |
150 | public IntListEnumerator(IntList collection) {
151 | collectionRef = collection;
152 | currentIndex = -1;
153 | currentObject = null;
154 | currentSize = collectionRef.Count;
155 | }
156 |
157 | // Type-safe iterator Current
158 | public int Current {
159 | get {
160 | if (currentIndex == -1)
161 | throw new global::System.InvalidOperationException("Enumeration not started.");
162 | if (currentIndex > currentSize - 1)
163 | throw new global::System.InvalidOperationException("Enumeration finished.");
164 | if (currentObject == null)
165 | throw new global::System.InvalidOperationException("Collection modified.");
166 | return (int)currentObject;
167 | }
168 | }
169 |
170 | // Type-unsafe IEnumerator.Current
171 | object global::System.Collections.IEnumerator.Current {
172 | get {
173 | return Current;
174 | }
175 | }
176 |
177 | public bool MoveNext() {
178 | int size = collectionRef.Count;
179 | bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
180 | if (moveOkay) {
181 | currentIndex++;
182 | currentObject = collectionRef[currentIndex];
183 | } else {
184 | currentObject = null;
185 | }
186 | return moveOkay;
187 | }
188 |
189 | public void Reset() {
190 | currentIndex = -1;
191 | currentObject = null;
192 | if (collectionRef.Count != currentSize) {
193 | throw new global::System.InvalidOperationException("Collection modified.");
194 | }
195 | }
196 |
197 | public void Dispose() {
198 | currentIndex = -1;
199 | currentObject = null;
200 | }
201 | }
202 |
203 | public void Clear() {
204 | OpenPosePINVOKE.IntList_Clear(swigCPtr);
205 | }
206 |
207 | public void Add(int x) {
208 | OpenPosePINVOKE.IntList_Add(swigCPtr, x);
209 | }
210 |
211 | private uint size() {
212 | uint ret = OpenPosePINVOKE.IntList_size(swigCPtr);
213 | return ret;
214 | }
215 |
216 | private uint capacity() {
217 | uint ret = OpenPosePINVOKE.IntList_capacity(swigCPtr);
218 | return ret;
219 | }
220 |
221 | private void reserve(uint n) {
222 | OpenPosePINVOKE.IntList_reserve(swigCPtr, n);
223 | }
224 |
225 | public IntList() : this(OpenPosePINVOKE.new_IntList__SWIG_0(), true) {
226 | }
227 |
228 | public IntList(IntList other) : this(OpenPosePINVOKE.new_IntList__SWIG_1(IntList.getCPtr(other)), true) {
229 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
230 | }
231 |
232 | public IntList(int capacity) : this(OpenPosePINVOKE.new_IntList__SWIG_2(capacity), true) {
233 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
234 | }
235 |
236 | private int getitemcopy(int index) {
237 | int ret = OpenPosePINVOKE.IntList_getitemcopy(swigCPtr, index);
238 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
239 | return ret;
240 | }
241 |
242 | private int getitem(int index) {
243 | int ret = OpenPosePINVOKE.IntList_getitem(swigCPtr, index);
244 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
245 | return ret;
246 | }
247 |
248 | private void setitem(int index, int val) {
249 | OpenPosePINVOKE.IntList_setitem(swigCPtr, index, val);
250 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
251 | }
252 |
253 | public void AddRange(IntList values) {
254 | OpenPosePINVOKE.IntList_AddRange(swigCPtr, IntList.getCPtr(values));
255 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
256 | }
257 |
258 | public IntList GetRange(int index, int count) {
259 | global::System.IntPtr cPtr = OpenPosePINVOKE.IntList_GetRange(swigCPtr, index, count);
260 | IntList ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntList(cPtr, true);
261 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
262 | return ret;
263 | }
264 |
265 | public void Insert(int index, int x) {
266 | OpenPosePINVOKE.IntList_Insert(swigCPtr, index, x);
267 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
268 | }
269 |
270 | public void InsertRange(int index, IntList values) {
271 | OpenPosePINVOKE.IntList_InsertRange(swigCPtr, index, IntList.getCPtr(values));
272 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
273 | }
274 |
275 | public void RemoveAt(int index) {
276 | OpenPosePINVOKE.IntList_RemoveAt(swigCPtr, index);
277 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
278 | }
279 |
280 | public void RemoveRange(int index, int count) {
281 | OpenPosePINVOKE.IntList_RemoveRange(swigCPtr, index, count);
282 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
283 | }
284 |
285 | public static IntList Repeat(int value, int count) {
286 | global::System.IntPtr cPtr = OpenPosePINVOKE.IntList_Repeat(value, count);
287 | IntList ret = (cPtr == global::System.IntPtr.Zero) ? null : new IntList(cPtr, true);
288 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
289 | return ret;
290 | }
291 |
292 | public void Reverse() {
293 | OpenPosePINVOKE.IntList_Reverse__SWIG_0(swigCPtr);
294 | }
295 |
296 | public void Reverse(int index, int count) {
297 | OpenPosePINVOKE.IntList_Reverse__SWIG_1(swigCPtr, index, count);
298 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
299 | }
300 |
301 | public void SetRange(int index, IntList values) {
302 | OpenPosePINVOKE.IntList_SetRange(swigCPtr, index, IntList.getCPtr(values));
303 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
304 | }
305 |
306 | public bool Contains(int value) {
307 | bool ret = OpenPosePINVOKE.IntList_Contains(swigCPtr, value);
308 | return ret;
309 | }
310 |
311 | public int IndexOf(int value) {
312 | int ret = OpenPosePINVOKE.IntList_IndexOf(swigCPtr, value);
313 | return ret;
314 | }
315 |
316 | public int LastIndexOf(int value) {
317 | int ret = OpenPosePINVOKE.IntList_LastIndexOf(swigCPtr, value);
318 | return ret;
319 | }
320 |
321 | public bool Remove(int value) {
322 | bool ret = OpenPosePINVOKE.IntList_Remove(swigCPtr, value);
323 | return ret;
324 | }
325 |
326 | }
327 |
328 | }
329 |
--------------------------------------------------------------------------------
/src/swig/genSwig/HeatMapTypeList.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | //
4 | // This file was automatically generated by SWIG (http://www.swig.org).
5 | // Version 3.0.12
6 | //
7 | // Do not make changes to this file unless you know what you are doing--modify
8 | // the SWIG interface file instead.
9 | //------------------------------------------------------------------------------
10 |
11 | namespace OpenPoseSharp {
12 |
13 | public class HeatMapTypeList : global::System.IDisposable, global::System.Collections.IEnumerable
14 | , global::System.Collections.Generic.IEnumerable
15 | {
16 | private global::System.Runtime.InteropServices.HandleRef swigCPtr;
17 | protected bool swigCMemOwn;
18 |
19 | internal HeatMapTypeList(global::System.IntPtr cPtr, bool cMemoryOwn) {
20 | swigCMemOwn = cMemoryOwn;
21 | swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
22 | }
23 |
24 | internal static global::System.Runtime.InteropServices.HandleRef getCPtr(HeatMapTypeList obj) {
25 | return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
26 | }
27 |
28 | ~HeatMapTypeList() {
29 | Dispose();
30 | }
31 |
32 | public virtual void Dispose() {
33 | lock(this) {
34 | if (swigCPtr.Handle != global::System.IntPtr.Zero) {
35 | if (swigCMemOwn) {
36 | swigCMemOwn = false;
37 | OpenPosePINVOKE.delete_HeatMapTypeList(swigCPtr);
38 | }
39 | swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
40 | }
41 | global::System.GC.SuppressFinalize(this);
42 | }
43 | }
44 |
45 | public HeatMapTypeList(global::System.Collections.ICollection c) : this() {
46 | if (c == null)
47 | throw new global::System.ArgumentNullException("c");
48 | foreach (HeatMapType element in c) {
49 | this.Add(element);
50 | }
51 | }
52 |
53 | public bool IsFixedSize {
54 | get {
55 | return false;
56 | }
57 | }
58 |
59 | public bool IsReadOnly {
60 | get {
61 | return false;
62 | }
63 | }
64 |
65 | public HeatMapType this[int index] {
66 | get {
67 | return getitem(index);
68 | }
69 | set {
70 | setitem(index, value);
71 | }
72 | }
73 |
74 | public int Capacity {
75 | get {
76 | return (int)capacity();
77 | }
78 | set {
79 | if (value < size())
80 | throw new global::System.ArgumentOutOfRangeException("Capacity");
81 | reserve((uint)value);
82 | }
83 | }
84 |
85 | public int Count {
86 | get {
87 | return (int)size();
88 | }
89 | }
90 |
91 | public bool IsSynchronized {
92 | get {
93 | return false;
94 | }
95 | }
96 |
97 | public void CopyTo(HeatMapType[] array)
98 | {
99 | CopyTo(0, array, 0, this.Count);
100 | }
101 |
102 | public void CopyTo(HeatMapType[] array, int arrayIndex)
103 | {
104 | CopyTo(0, array, arrayIndex, this.Count);
105 | }
106 |
107 | public void CopyTo(int index, HeatMapType[] array, int arrayIndex, int count)
108 | {
109 | if (array == null)
110 | throw new global::System.ArgumentNullException("array");
111 | if (index < 0)
112 | throw new global::System.ArgumentOutOfRangeException("index", "Value is less than zero");
113 | if (arrayIndex < 0)
114 | throw new global::System.ArgumentOutOfRangeException("arrayIndex", "Value is less than zero");
115 | if (count < 0)
116 | throw new global::System.ArgumentOutOfRangeException("count", "Value is less than zero");
117 | if (array.Rank > 1)
118 | throw new global::System.ArgumentException("Multi dimensional array.", "array");
119 | if (index+count > this.Count || arrayIndex+count > array.Length)
120 | throw new global::System.ArgumentException("Number of elements to copy is too large.");
121 | for (int i=0; i global::System.Collections.Generic.IEnumerable.GetEnumerator() {
126 | return new HeatMapTypeListEnumerator(this);
127 | }
128 |
129 | global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() {
130 | return new HeatMapTypeListEnumerator(this);
131 | }
132 |
133 | public HeatMapTypeListEnumerator GetEnumerator() {
134 | return new HeatMapTypeListEnumerator(this);
135 | }
136 |
137 | // Type-safe enumerator
138 | /// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown
139 | /// whenever the collection is modified. This has been done for changes in the size of the
140 | /// collection but not when one of the elements of the collection is modified as it is a bit
141 | /// tricky to detect unmanaged code that modifies the collection under our feet.
142 | public sealed class HeatMapTypeListEnumerator : global::System.Collections.IEnumerator
143 | , global::System.Collections.Generic.IEnumerator
144 | {
145 | private HeatMapTypeList collectionRef;
146 | private int currentIndex;
147 | private object currentObject;
148 | private int currentSize;
149 |
150 | public HeatMapTypeListEnumerator(HeatMapTypeList collection) {
151 | collectionRef = collection;
152 | currentIndex = -1;
153 | currentObject = null;
154 | currentSize = collectionRef.Count;
155 | }
156 |
157 | // Type-safe iterator Current
158 | public HeatMapType Current {
159 | get {
160 | if (currentIndex == -1)
161 | throw new global::System.InvalidOperationException("Enumeration not started.");
162 | if (currentIndex > currentSize - 1)
163 | throw new global::System.InvalidOperationException("Enumeration finished.");
164 | if (currentObject == null)
165 | throw new global::System.InvalidOperationException("Collection modified.");
166 | return (HeatMapType)currentObject;
167 | }
168 | }
169 |
170 | // Type-unsafe IEnumerator.Current
171 | object global::System.Collections.IEnumerator.Current {
172 | get {
173 | return Current;
174 | }
175 | }
176 |
177 | public bool MoveNext() {
178 | int size = collectionRef.Count;
179 | bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
180 | if (moveOkay) {
181 | currentIndex++;
182 | currentObject = collectionRef[currentIndex];
183 | } else {
184 | currentObject = null;
185 | }
186 | return moveOkay;
187 | }
188 |
189 | public void Reset() {
190 | currentIndex = -1;
191 | currentObject = null;
192 | if (collectionRef.Count != currentSize) {
193 | throw new global::System.InvalidOperationException("Collection modified.");
194 | }
195 | }
196 |
197 | public void Dispose() {
198 | currentIndex = -1;
199 | currentObject = null;
200 | }
201 | }
202 |
203 | public void Clear() {
204 | OpenPosePINVOKE.HeatMapTypeList_Clear(swigCPtr);
205 | }
206 |
207 | public void Add(HeatMapType x) {
208 | OpenPosePINVOKE.HeatMapTypeList_Add(swigCPtr, (int)x);
209 | }
210 |
211 | private uint size() {
212 | uint ret = OpenPosePINVOKE.HeatMapTypeList_size(swigCPtr);
213 | return ret;
214 | }
215 |
216 | private uint capacity() {
217 | uint ret = OpenPosePINVOKE.HeatMapTypeList_capacity(swigCPtr);
218 | return ret;
219 | }
220 |
221 | private void reserve(uint n) {
222 | OpenPosePINVOKE.HeatMapTypeList_reserve(swigCPtr, n);
223 | }
224 |
225 | public HeatMapTypeList() : this(OpenPosePINVOKE.new_HeatMapTypeList__SWIG_0(), true) {
226 | }
227 |
228 | public HeatMapTypeList(HeatMapTypeList other) : this(OpenPosePINVOKE.new_HeatMapTypeList__SWIG_1(HeatMapTypeList.getCPtr(other)), true) {
229 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
230 | }
231 |
232 | public HeatMapTypeList(int capacity) : this(OpenPosePINVOKE.new_HeatMapTypeList__SWIG_2(capacity), true) {
233 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
234 | }
235 |
236 | private HeatMapType getitemcopy(int index) {
237 | HeatMapType ret = (HeatMapType)OpenPosePINVOKE.HeatMapTypeList_getitemcopy(swigCPtr, index);
238 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
239 | return ret;
240 | }
241 |
242 | private HeatMapType getitem(int index) {
243 | HeatMapType ret = (HeatMapType)OpenPosePINVOKE.HeatMapTypeList_getitem(swigCPtr, index);
244 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
245 | return ret;
246 | }
247 |
248 | private void setitem(int index, HeatMapType val) {
249 | OpenPosePINVOKE.HeatMapTypeList_setitem(swigCPtr, index, (int)val);
250 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
251 | }
252 |
253 | public void AddRange(HeatMapTypeList values) {
254 | OpenPosePINVOKE.HeatMapTypeList_AddRange(swigCPtr, HeatMapTypeList.getCPtr(values));
255 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
256 | }
257 |
258 | public HeatMapTypeList GetRange(int index, int count) {
259 | global::System.IntPtr cPtr = OpenPosePINVOKE.HeatMapTypeList_GetRange(swigCPtr, index, count);
260 | HeatMapTypeList ret = (cPtr == global::System.IntPtr.Zero) ? null : new HeatMapTypeList(cPtr, true);
261 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
262 | return ret;
263 | }
264 |
265 | public void Insert(int index, HeatMapType x) {
266 | OpenPosePINVOKE.HeatMapTypeList_Insert(swigCPtr, index, (int)x);
267 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
268 | }
269 |
270 | public void InsertRange(int index, HeatMapTypeList values) {
271 | OpenPosePINVOKE.HeatMapTypeList_InsertRange(swigCPtr, index, HeatMapTypeList.getCPtr(values));
272 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
273 | }
274 |
275 | public void RemoveAt(int index) {
276 | OpenPosePINVOKE.HeatMapTypeList_RemoveAt(swigCPtr, index);
277 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
278 | }
279 |
280 | public void RemoveRange(int index, int count) {
281 | OpenPosePINVOKE.HeatMapTypeList_RemoveRange(swigCPtr, index, count);
282 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
283 | }
284 |
285 | public static HeatMapTypeList Repeat(HeatMapType value, int count) {
286 | global::System.IntPtr cPtr = OpenPosePINVOKE.HeatMapTypeList_Repeat((int)value, count);
287 | HeatMapTypeList ret = (cPtr == global::System.IntPtr.Zero) ? null : new HeatMapTypeList(cPtr, true);
288 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
289 | return ret;
290 | }
291 |
292 | public void Reverse() {
293 | OpenPosePINVOKE.HeatMapTypeList_Reverse__SWIG_0(swigCPtr);
294 | }
295 |
296 | public void Reverse(int index, int count) {
297 | OpenPosePINVOKE.HeatMapTypeList_Reverse__SWIG_1(swigCPtr, index, count);
298 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
299 | }
300 |
301 | public void SetRange(int index, HeatMapTypeList values) {
302 | OpenPosePINVOKE.HeatMapTypeList_SetRange(swigCPtr, index, HeatMapTypeList.getCPtr(values));
303 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
304 | }
305 |
306 | }
307 |
308 | }
309 |
--------------------------------------------------------------------------------
/src/swig/genSwig/FloatRectangle2ArrayList.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | //
4 | // This file was automatically generated by SWIG (http://www.swig.org).
5 | // Version 3.0.12
6 | //
7 | // Do not make changes to this file unless you know what you are doing--modify
8 | // the SWIG interface file instead.
9 | //------------------------------------------------------------------------------
10 |
11 | namespace OpenPoseSharp {
12 |
13 | public class FloatRectangle2ArrayList : global::System.IDisposable, global::System.Collections.IEnumerable
14 | , global::System.Collections.Generic.IEnumerable
15 | {
16 | private global::System.Runtime.InteropServices.HandleRef swigCPtr;
17 | protected bool swigCMemOwn;
18 |
19 | internal FloatRectangle2ArrayList(global::System.IntPtr cPtr, bool cMemoryOwn) {
20 | swigCMemOwn = cMemoryOwn;
21 | swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
22 | }
23 |
24 | internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FloatRectangle2ArrayList obj) {
25 | return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
26 | }
27 |
28 | ~FloatRectangle2ArrayList() {
29 | Dispose();
30 | }
31 |
32 | public virtual void Dispose() {
33 | lock(this) {
34 | if (swigCPtr.Handle != global::System.IntPtr.Zero) {
35 | if (swigCMemOwn) {
36 | swigCMemOwn = false;
37 | OpenPosePINVOKE.delete_FloatRectangle2ArrayList(swigCPtr);
38 | }
39 | swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
40 | }
41 | global::System.GC.SuppressFinalize(this);
42 | }
43 | }
44 |
45 | public FloatRectangle2ArrayList(global::System.Collections.ICollection c) : this() {
46 | if (c == null)
47 | throw new global::System.ArgumentNullException("c");
48 | foreach (FloatRectangle2Array element in c) {
49 | this.Add(element);
50 | }
51 | }
52 |
53 | public bool IsFixedSize {
54 | get {
55 | return false;
56 | }
57 | }
58 |
59 | public bool IsReadOnly {
60 | get {
61 | return false;
62 | }
63 | }
64 |
65 | public FloatRectangle2Array this[int index] {
66 | get {
67 | return getitem(index);
68 | }
69 | set {
70 | setitem(index, value);
71 | }
72 | }
73 |
74 | public int Capacity {
75 | get {
76 | return (int)capacity();
77 | }
78 | set {
79 | if (value < size())
80 | throw new global::System.ArgumentOutOfRangeException("Capacity");
81 | reserve((uint)value);
82 | }
83 | }
84 |
85 | public int Count {
86 | get {
87 | return (int)size();
88 | }
89 | }
90 |
91 | public bool IsSynchronized {
92 | get {
93 | return false;
94 | }
95 | }
96 |
97 | public void CopyTo(FloatRectangle2Array[] array)
98 | {
99 | CopyTo(0, array, 0, this.Count);
100 | }
101 |
102 | public void CopyTo(FloatRectangle2Array[] array, int arrayIndex)
103 | {
104 | CopyTo(0, array, arrayIndex, this.Count);
105 | }
106 |
107 | public void CopyTo(int index, FloatRectangle2Array[] array, int arrayIndex, int count)
108 | {
109 | if (array == null)
110 | throw new global::System.ArgumentNullException("array");
111 | if (index < 0)
112 | throw new global::System.ArgumentOutOfRangeException("index", "Value is less than zero");
113 | if (arrayIndex < 0)
114 | throw new global::System.ArgumentOutOfRangeException("arrayIndex", "Value is less than zero");
115 | if (count < 0)
116 | throw new global::System.ArgumentOutOfRangeException("count", "Value is less than zero");
117 | if (array.Rank > 1)
118 | throw new global::System.ArgumentException("Multi dimensional array.", "array");
119 | if (index+count > this.Count || arrayIndex+count > array.Length)
120 | throw new global::System.ArgumentException("Number of elements to copy is too large.");
121 | for (int i=0; i global::System.Collections.Generic.IEnumerable.GetEnumerator() {
126 | return new FloatRectangle2ArrayListEnumerator(this);
127 | }
128 |
129 | global::System.Collections.IEnumerator global::System.Collections.IEnumerable.GetEnumerator() {
130 | return new FloatRectangle2ArrayListEnumerator(this);
131 | }
132 |
133 | public FloatRectangle2ArrayListEnumerator GetEnumerator() {
134 | return new FloatRectangle2ArrayListEnumerator(this);
135 | }
136 |
137 | // Type-safe enumerator
138 | /// Note that the IEnumerator documentation requires an InvalidOperationException to be thrown
139 | /// whenever the collection is modified. This has been done for changes in the size of the
140 | /// collection but not when one of the elements of the collection is modified as it is a bit
141 | /// tricky to detect unmanaged code that modifies the collection under our feet.
142 | public sealed class FloatRectangle2ArrayListEnumerator : global::System.Collections.IEnumerator
143 | , global::System.Collections.Generic.IEnumerator
144 | {
145 | private FloatRectangle2ArrayList collectionRef;
146 | private int currentIndex;
147 | private object currentObject;
148 | private int currentSize;
149 |
150 | public FloatRectangle2ArrayListEnumerator(FloatRectangle2ArrayList collection) {
151 | collectionRef = collection;
152 | currentIndex = -1;
153 | currentObject = null;
154 | currentSize = collectionRef.Count;
155 | }
156 |
157 | // Type-safe iterator Current
158 | public FloatRectangle2Array Current {
159 | get {
160 | if (currentIndex == -1)
161 | throw new global::System.InvalidOperationException("Enumeration not started.");
162 | if (currentIndex > currentSize - 1)
163 | throw new global::System.InvalidOperationException("Enumeration finished.");
164 | if (currentObject == null)
165 | throw new global::System.InvalidOperationException("Collection modified.");
166 | return (FloatRectangle2Array)currentObject;
167 | }
168 | }
169 |
170 | // Type-unsafe IEnumerator.Current
171 | object global::System.Collections.IEnumerator.Current {
172 | get {
173 | return Current;
174 | }
175 | }
176 |
177 | public bool MoveNext() {
178 | int size = collectionRef.Count;
179 | bool moveOkay = (currentIndex+1 < size) && (size == currentSize);
180 | if (moveOkay) {
181 | currentIndex++;
182 | currentObject = collectionRef[currentIndex];
183 | } else {
184 | currentObject = null;
185 | }
186 | return moveOkay;
187 | }
188 |
189 | public void Reset() {
190 | currentIndex = -1;
191 | currentObject = null;
192 | if (collectionRef.Count != currentSize) {
193 | throw new global::System.InvalidOperationException("Collection modified.");
194 | }
195 | }
196 |
197 | public void Dispose() {
198 | currentIndex = -1;
199 | currentObject = null;
200 | }
201 | }
202 |
203 | public void Clear() {
204 | OpenPosePINVOKE.FloatRectangle2ArrayList_Clear(swigCPtr);
205 | }
206 |
207 | public void Add(FloatRectangle2Array x) {
208 | OpenPosePINVOKE.FloatRectangle2ArrayList_Add(swigCPtr, FloatRectangle2Array.getCPtr(x));
209 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
210 | }
211 |
212 | private uint size() {
213 | uint ret = OpenPosePINVOKE.FloatRectangle2ArrayList_size(swigCPtr);
214 | return ret;
215 | }
216 |
217 | private uint capacity() {
218 | uint ret = OpenPosePINVOKE.FloatRectangle2ArrayList_capacity(swigCPtr);
219 | return ret;
220 | }
221 |
222 | private void reserve(uint n) {
223 | OpenPosePINVOKE.FloatRectangle2ArrayList_reserve(swigCPtr, n);
224 | }
225 |
226 | public FloatRectangle2ArrayList() : this(OpenPosePINVOKE.new_FloatRectangle2ArrayList__SWIG_0(), true) {
227 | }
228 |
229 | public FloatRectangle2ArrayList(FloatRectangle2ArrayList other) : this(OpenPosePINVOKE.new_FloatRectangle2ArrayList__SWIG_1(FloatRectangle2ArrayList.getCPtr(other)), true) {
230 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
231 | }
232 |
233 | public FloatRectangle2ArrayList(int capacity) : this(OpenPosePINVOKE.new_FloatRectangle2ArrayList__SWIG_2(capacity), true) {
234 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
235 | }
236 |
237 | private FloatRectangle2Array getitemcopy(int index) {
238 | FloatRectangle2Array ret = new FloatRectangle2Array(OpenPosePINVOKE.FloatRectangle2ArrayList_getitemcopy(swigCPtr, index), true);
239 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
240 | return ret;
241 | }
242 |
243 | private FloatRectangle2Array getitem(int index) {
244 | FloatRectangle2Array ret = new FloatRectangle2Array(OpenPosePINVOKE.FloatRectangle2ArrayList_getitem(swigCPtr, index), false);
245 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
246 | return ret;
247 | }
248 |
249 | private void setitem(int index, FloatRectangle2Array val) {
250 | OpenPosePINVOKE.FloatRectangle2ArrayList_setitem(swigCPtr, index, FloatRectangle2Array.getCPtr(val));
251 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
252 | }
253 |
254 | public void AddRange(FloatRectangle2ArrayList values) {
255 | OpenPosePINVOKE.FloatRectangle2ArrayList_AddRange(swigCPtr, FloatRectangle2ArrayList.getCPtr(values));
256 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
257 | }
258 |
259 | public FloatRectangle2ArrayList GetRange(int index, int count) {
260 | global::System.IntPtr cPtr = OpenPosePINVOKE.FloatRectangle2ArrayList_GetRange(swigCPtr, index, count);
261 | FloatRectangle2ArrayList ret = (cPtr == global::System.IntPtr.Zero) ? null : new FloatRectangle2ArrayList(cPtr, true);
262 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
263 | return ret;
264 | }
265 |
266 | public void Insert(int index, FloatRectangle2Array x) {
267 | OpenPosePINVOKE.FloatRectangle2ArrayList_Insert(swigCPtr, index, FloatRectangle2Array.getCPtr(x));
268 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
269 | }
270 |
271 | public void InsertRange(int index, FloatRectangle2ArrayList values) {
272 | OpenPosePINVOKE.FloatRectangle2ArrayList_InsertRange(swigCPtr, index, FloatRectangle2ArrayList.getCPtr(values));
273 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
274 | }
275 |
276 | public void RemoveAt(int index) {
277 | OpenPosePINVOKE.FloatRectangle2ArrayList_RemoveAt(swigCPtr, index);
278 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
279 | }
280 |
281 | public void RemoveRange(int index, int count) {
282 | OpenPosePINVOKE.FloatRectangle2ArrayList_RemoveRange(swigCPtr, index, count);
283 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
284 | }
285 |
286 | public static FloatRectangle2ArrayList Repeat(FloatRectangle2Array value, int count) {
287 | global::System.IntPtr cPtr = OpenPosePINVOKE.FloatRectangle2ArrayList_Repeat(FloatRectangle2Array.getCPtr(value), count);
288 | FloatRectangle2ArrayList ret = (cPtr == global::System.IntPtr.Zero) ? null : new FloatRectangle2ArrayList(cPtr, true);
289 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
290 | return ret;
291 | }
292 |
293 | public void Reverse() {
294 | OpenPosePINVOKE.FloatRectangle2ArrayList_Reverse__SWIG_0(swigCPtr);
295 | }
296 |
297 | public void Reverse(int index, int count) {
298 | OpenPosePINVOKE.FloatRectangle2ArrayList_Reverse__SWIG_1(swigCPtr, index, count);
299 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
300 | }
301 |
302 | public void SetRange(int index, FloatRectangle2ArrayList values) {
303 | OpenPosePINVOKE.FloatRectangle2ArrayList_SetRange(swigCPtr, index, FloatRectangle2ArrayList.getCPtr(values));
304 | if (OpenPosePINVOKE.SWIGPendingException.Pending) throw OpenPosePINVOKE.SWIGPendingException.Retrieve();
305 | }
306 |
307 | }
308 |
309 | }
310 |
--------------------------------------------------------------------------------
/src/swig/genSwig/OpenPosePINVOKE.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | //
4 | // This file was automatically generated by SWIG (http://www.swig.org).
5 | // Version 3.0.12
6 | //
7 | // Do not make changes to this file unless you know what you are doing--modify
8 | // the SWIG interface file instead.
9 | //------------------------------------------------------------------------------
10 |
11 | namespace OpenPoseSharp {
12 |
13 | class OpenPosePINVOKE {
14 |
15 | protected class SWIGExceptionHelper {
16 |
17 | public delegate void ExceptionDelegate(string message);
18 | public delegate void ExceptionArgumentDelegate(string message, string paramName);
19 |
20 | static ExceptionDelegate applicationDelegate = new ExceptionDelegate(SetPendingApplicationException);
21 | static ExceptionDelegate arithmeticDelegate = new ExceptionDelegate(SetPendingArithmeticException);
22 | static ExceptionDelegate divideByZeroDelegate = new ExceptionDelegate(SetPendingDivideByZeroException);
23 | static ExceptionDelegate indexOutOfRangeDelegate = new ExceptionDelegate(SetPendingIndexOutOfRangeException);
24 | static ExceptionDelegate invalidCastDelegate = new ExceptionDelegate(SetPendingInvalidCastException);
25 | static ExceptionDelegate invalidOperationDelegate = new ExceptionDelegate(SetPendingInvalidOperationException);
26 | static ExceptionDelegate ioDelegate = new ExceptionDelegate(SetPendingIOException);
27 | static ExceptionDelegate nullReferenceDelegate = new ExceptionDelegate(SetPendingNullReferenceException);
28 | static ExceptionDelegate outOfMemoryDelegate = new ExceptionDelegate(SetPendingOutOfMemoryException);
29 | static ExceptionDelegate overflowDelegate = new ExceptionDelegate(SetPendingOverflowException);
30 | static ExceptionDelegate systemDelegate = new ExceptionDelegate(SetPendingSystemException);
31 |
32 | static ExceptionArgumentDelegate argumentDelegate = new ExceptionArgumentDelegate(SetPendingArgumentException);
33 | static ExceptionArgumentDelegate argumentNullDelegate = new ExceptionArgumentDelegate(SetPendingArgumentNullException);
34 | static ExceptionArgumentDelegate argumentOutOfRangeDelegate = new ExceptionArgumentDelegate(SetPendingArgumentOutOfRangeException);
35 |
36 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="SWIGRegisterExceptionCallbacks_OpenPose")]
37 | public static extern void SWIGRegisterExceptionCallbacks_OpenPose(
38 | ExceptionDelegate applicationDelegate,
39 | ExceptionDelegate arithmeticDelegate,
40 | ExceptionDelegate divideByZeroDelegate,
41 | ExceptionDelegate indexOutOfRangeDelegate,
42 | ExceptionDelegate invalidCastDelegate,
43 | ExceptionDelegate invalidOperationDelegate,
44 | ExceptionDelegate ioDelegate,
45 | ExceptionDelegate nullReferenceDelegate,
46 | ExceptionDelegate outOfMemoryDelegate,
47 | ExceptionDelegate overflowDelegate,
48 | ExceptionDelegate systemExceptionDelegate);
49 |
50 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="SWIGRegisterExceptionArgumentCallbacks_OpenPose")]
51 | public static extern void SWIGRegisterExceptionCallbacksArgument_OpenPose(
52 | ExceptionArgumentDelegate argumentDelegate,
53 | ExceptionArgumentDelegate argumentNullDelegate,
54 | ExceptionArgumentDelegate argumentOutOfRangeDelegate);
55 |
56 | static void SetPendingApplicationException(string message) {
57 | SWIGPendingException.Set(new global::System.ApplicationException(message, SWIGPendingException.Retrieve()));
58 | }
59 | static void SetPendingArithmeticException(string message) {
60 | SWIGPendingException.Set(new global::System.ArithmeticException(message, SWIGPendingException.Retrieve()));
61 | }
62 | static void SetPendingDivideByZeroException(string message) {
63 | SWIGPendingException.Set(new global::System.DivideByZeroException(message, SWIGPendingException.Retrieve()));
64 | }
65 | static void SetPendingIndexOutOfRangeException(string message) {
66 | SWIGPendingException.Set(new global::System.IndexOutOfRangeException(message, SWIGPendingException.Retrieve()));
67 | }
68 | static void SetPendingInvalidCastException(string message) {
69 | SWIGPendingException.Set(new global::System.InvalidCastException(message, SWIGPendingException.Retrieve()));
70 | }
71 | static void SetPendingInvalidOperationException(string message) {
72 | SWIGPendingException.Set(new global::System.InvalidOperationException(message, SWIGPendingException.Retrieve()));
73 | }
74 | static void SetPendingIOException(string message) {
75 | SWIGPendingException.Set(new global::System.IO.IOException(message, SWIGPendingException.Retrieve()));
76 | }
77 | static void SetPendingNullReferenceException(string message) {
78 | SWIGPendingException.Set(new global::System.NullReferenceException(message, SWIGPendingException.Retrieve()));
79 | }
80 | static void SetPendingOutOfMemoryException(string message) {
81 | SWIGPendingException.Set(new global::System.OutOfMemoryException(message, SWIGPendingException.Retrieve()));
82 | }
83 | static void SetPendingOverflowException(string message) {
84 | SWIGPendingException.Set(new global::System.OverflowException(message, SWIGPendingException.Retrieve()));
85 | }
86 | static void SetPendingSystemException(string message) {
87 | SWIGPendingException.Set(new global::System.SystemException(message, SWIGPendingException.Retrieve()));
88 | }
89 |
90 | static void SetPendingArgumentException(string message, string paramName) {
91 | SWIGPendingException.Set(new global::System.ArgumentException(message, paramName, SWIGPendingException.Retrieve()));
92 | }
93 | static void SetPendingArgumentNullException(string message, string paramName) {
94 | global::System.Exception e = SWIGPendingException.Retrieve();
95 | if (e != null) message = message + " Inner Exception: " + e.Message;
96 | SWIGPendingException.Set(new global::System.ArgumentNullException(paramName, message));
97 | }
98 | static void SetPendingArgumentOutOfRangeException(string message, string paramName) {
99 | global::System.Exception e = SWIGPendingException.Retrieve();
100 | if (e != null) message = message + " Inner Exception: " + e.Message;
101 | SWIGPendingException.Set(new global::System.ArgumentOutOfRangeException(paramName, message));
102 | }
103 |
104 | static SWIGExceptionHelper() {
105 | SWIGRegisterExceptionCallbacks_OpenPose(
106 | applicationDelegate,
107 | arithmeticDelegate,
108 | divideByZeroDelegate,
109 | indexOutOfRangeDelegate,
110 | invalidCastDelegate,
111 | invalidOperationDelegate,
112 | ioDelegate,
113 | nullReferenceDelegate,
114 | outOfMemoryDelegate,
115 | overflowDelegate,
116 | systemDelegate);
117 |
118 | SWIGRegisterExceptionCallbacksArgument_OpenPose(
119 | argumentDelegate,
120 | argumentNullDelegate,
121 | argumentOutOfRangeDelegate);
122 | }
123 | }
124 |
125 | protected static SWIGExceptionHelper swigExceptionHelper = new SWIGExceptionHelper();
126 |
127 | public class SWIGPendingException {
128 | [global::System.ThreadStatic]
129 | private static global::System.Exception pendingException = null;
130 | private static int numExceptionsPending = 0;
131 |
132 | public static bool Pending {
133 | get {
134 | bool pending = false;
135 | if (numExceptionsPending > 0)
136 | if (pendingException != null)
137 | pending = true;
138 | return pending;
139 | }
140 | }
141 |
142 | public static void Set(global::System.Exception e) {
143 | if (pendingException != null)
144 | throw new global::System.ApplicationException("FATAL: An earlier pending exception from unmanaged code was missed and thus not thrown (" + pendingException.ToString() + ")", e);
145 | pendingException = e;
146 | lock(typeof(OpenPosePINVOKE)) {
147 | numExceptionsPending++;
148 | }
149 | }
150 |
151 | public static global::System.Exception Retrieve() {
152 | global::System.Exception e = null;
153 | if (numExceptionsPending > 0) {
154 | if (pendingException != null) {
155 | e = pendingException;
156 | pendingException = null;
157 | lock(typeof(OpenPosePINVOKE)) {
158 | numExceptionsPending--;
159 | }
160 | }
161 | }
162 | return e;
163 | }
164 | }
165 |
166 |
167 | protected class SWIGStringHelper {
168 |
169 | public delegate string SWIGStringDelegate(string message);
170 | static SWIGStringDelegate stringDelegate = new SWIGStringDelegate(CreateString);
171 |
172 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="SWIGRegisterStringCallback_OpenPose")]
173 | public static extern void SWIGRegisterStringCallback_OpenPose(SWIGStringDelegate stringDelegate);
174 |
175 | static string CreateString(string cString) {
176 | return cString;
177 | }
178 |
179 | static SWIGStringHelper() {
180 | SWIGRegisterStringCallback_OpenPose(stringDelegate);
181 | }
182 | }
183 |
184 | static protected SWIGStringHelper swigStringHelper = new SWIGStringHelper();
185 |
186 |
187 | static OpenPosePINVOKE() {
188 | }
189 |
190 |
191 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_OPEN_POSE_NAME_STRING_get")]
192 | public static extern string OPEN_POSE_NAME_STRING_get();
193 |
194 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_OPEN_POSE_VERSION_STRING_get")]
195 | public static extern string OPEN_POSE_VERSION_STRING_get();
196 |
197 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_OPEN_POSE_NAME_AND_VERSION_get")]
198 | public static extern string OPEN_POSE_NAME_AND_VERSION_get();
199 |
200 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_delete_HandExtractorNet")]
201 | public static extern void delete_HandExtractorNet(global::System.Runtime.InteropServices.HandleRef jarg1);
202 |
203 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_HandExtractorNet_initializationOnThread")]
204 | public static extern void HandExtractorNet_initializationOnThread(global::System.Runtime.InteropServices.HandleRef jarg1);
205 |
206 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_HandExtractorNet_forwardPass")]
207 | public static extern void HandExtractorNet_forwardPass(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
208 |
209 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_HandExtractorNet_getHeatMaps")]
210 | public static extern global::System.IntPtr HandExtractorNet_getHeatMaps(global::System.Runtime.InteropServices.HandleRef jarg1);
211 |
212 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_HandExtractorNet_getHandKeypoints")]
213 | public static extern global::System.IntPtr HandExtractorNet_getHandKeypoints(global::System.Runtime.InteropServices.HandleRef jarg1);
214 |
215 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_HandExtractorNet_getEnabled")]
216 | public static extern bool HandExtractorNet_getEnabled(global::System.Runtime.InteropServices.HandleRef jarg1);
217 |
218 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_HandExtractorNet_setEnabled")]
219 | public static extern void HandExtractorNet_setEnabled(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2);
220 |
221 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_new_HandExtractorCaffe__SWIG_0")]
222 | public static extern global::System.IntPtr new_HandExtractorCaffe__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, string jarg3, int jarg4, ushort jarg5, float jarg6, global::System.Runtime.InteropServices.HandleRef jarg7, int jarg8, bool jarg9);
223 |
224 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_new_HandExtractorCaffe__SWIG_1")]
225 | public static extern global::System.IntPtr new_HandExtractorCaffe__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, string jarg3, int jarg4, ushort jarg5, float jarg6, global::System.Runtime.InteropServices.HandleRef jarg7, int jarg8);
226 |
227 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_new_HandExtractorCaffe__SWIG_2")]
228 | public static extern global::System.IntPtr new_HandExtractorCaffe__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, string jarg3, int jarg4, ushort jarg5, float jarg6, global::System.Runtime.InteropServices.HandleRef jarg7);
229 |
230 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_new_HandExtractorCaffe__SWIG_3")]
231 | public static extern global::System.IntPtr new_HandExtractorCaffe__SWIG_3(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, string jarg3, int jarg4, ushort jarg5, float jarg6);
232 |
233 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_new_HandExtractorCaffe__SWIG_4")]
234 | public static extern global::System.IntPtr new_HandExtractorCaffe__SWIG_4(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, string jarg3, int jarg4, ushort jarg5);
235 |
236 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_new_HandExtractorCaffe__SWIG_5")]
237 | public static extern global::System.IntPtr new_HandExtractorCaffe__SWIG_5(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, string jarg3, int jarg4);
238 |
239 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_delete_HandExtractorCaffe")]
240 | public static extern void delete_HandExtractorCaffe(global::System.Runtime.InteropServices.HandleRef jarg1);
241 |
242 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_HandExtractorCaffe_netInitializationOnThread")]
243 | public static extern void HandExtractorCaffe_netInitializationOnThread(global::System.Runtime.InteropServices.HandleRef jarg1);
244 |
245 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_HandExtractorCaffe_forwardPass")]
246 | public static extern void HandExtractorCaffe_forwardPass(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
247 |
248 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatPoint_x_set")]
249 | public static extern void FloatPoint_x_set(global::System.Runtime.InteropServices.HandleRef jarg1, float jarg2);
250 |
251 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatPoint_x_get")]
252 | public static extern float FloatPoint_x_get(global::System.Runtime.InteropServices.HandleRef jarg1);
253 |
254 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatPoint_y_set")]
255 | public static extern void FloatPoint_y_set(global::System.Runtime.InteropServices.HandleRef jarg1, float jarg2);
256 |
257 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatPoint_y_get")]
258 | public static extern float FloatPoint_y_get(global::System.Runtime.InteropServices.HandleRef jarg1);
259 |
260 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_new_FloatPoint__SWIG_0")]
261 | public static extern global::System.IntPtr new_FloatPoint__SWIG_0(float jarg1, float jarg2);
262 |
263 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_new_FloatPoint__SWIG_1")]
264 | public static extern global::System.IntPtr new_FloatPoint__SWIG_1(float jarg1);
265 |
266 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_new_FloatPoint__SWIG_2")]
267 | public static extern global::System.IntPtr new_FloatPoint__SWIG_2();
268 |
269 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_new_FloatPoint__SWIG_3")]
270 | public static extern global::System.IntPtr new_FloatPoint__SWIG_3(global::System.Runtime.InteropServices.HandleRef jarg1);
271 |
272 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatPoint_area")]
273 | public static extern float FloatPoint_area(global::System.Runtime.InteropServices.HandleRef jarg1);
274 |
275 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatPoint_toString")]
276 | public static extern string FloatPoint_toString(global::System.Runtime.InteropServices.HandleRef jarg1);
277 |
278 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_delete_FloatPoint")]
279 | public static extern void delete_FloatPoint(global::System.Runtime.InteropServices.HandleRef jarg1);
280 |
281 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_IntPoint_x_set")]
282 | public static extern void IntPoint_x_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
283 |
284 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_IntPoint_x_get")]
285 | public static extern int IntPoint_x_get(global::System.Runtime.InteropServices.HandleRef jarg1);
286 |
287 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_IntPoint_y_set")]
288 | public static extern void IntPoint_y_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
289 |
290 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_IntPoint_y_get")]
291 | public static extern int IntPoint_y_get(global::System.Runtime.InteropServices.HandleRef jarg1);
292 |
293 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_new_IntPoint__SWIG_0")]
294 | public static extern global::System.IntPtr new_IntPoint__SWIG_0(int jarg1, int jarg2);
295 |
296 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_new_IntPoint__SWIG_1")]
297 | public static extern global::System.IntPtr new_IntPoint__SWIG_1(int jarg1);
298 |
299 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_new_IntPoint__SWIG_2")]
300 | public static extern global::System.IntPtr new_IntPoint__SWIG_2();
301 |
302 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_new_IntPoint__SWIG_3")]
303 | public static extern global::System.IntPtr new_IntPoint__SWIG_3(global::System.Runtime.InteropServices.HandleRef jarg1);
304 |
305 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_IntPoint_area")]
306 | public static extern int IntPoint_area(global::System.Runtime.InteropServices.HandleRef jarg1);
307 |
308 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_IntPoint_toString")]
309 | public static extern string IntPoint_toString(global::System.Runtime.InteropServices.HandleRef jarg1);
310 |
311 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_delete_IntPoint")]
312 | public static extern void delete_IntPoint(global::System.Runtime.InteropServices.HandleRef jarg1);
313 |
314 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_Rectangle_x_set")]
315 | public static extern void Rectangle_x_set(global::System.Runtime.InteropServices.HandleRef jarg1, float jarg2);
316 |
317 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_Rectangle_x_get")]
318 | public static extern float Rectangle_x_get(global::System.Runtime.InteropServices.HandleRef jarg1);
319 |
320 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_Rectangle_y_set")]
321 | public static extern void Rectangle_y_set(global::System.Runtime.InteropServices.HandleRef jarg1, float jarg2);
322 |
323 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_Rectangle_y_get")]
324 | public static extern float Rectangle_y_get(global::System.Runtime.InteropServices.HandleRef jarg1);
325 |
326 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_Rectangle_width_set")]
327 | public static extern void Rectangle_width_set(global::System.Runtime.InteropServices.HandleRef jarg1, float jarg2);
328 |
329 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_Rectangle_width_get")]
330 | public static extern float Rectangle_width_get(global::System.Runtime.InteropServices.HandleRef jarg1);
331 |
332 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_Rectangle_height_set")]
333 | public static extern void Rectangle_height_set(global::System.Runtime.InteropServices.HandleRef jarg1, float jarg2);
334 |
335 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_Rectangle_height_get")]
336 | public static extern float Rectangle_height_get(global::System.Runtime.InteropServices.HandleRef jarg1);
337 |
338 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_new_Rectangle__SWIG_0")]
339 | public static extern global::System.IntPtr new_Rectangle__SWIG_0(float jarg1, float jarg2, float jarg3, float jarg4);
340 |
341 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_new_Rectangle__SWIG_1")]
342 | public static extern global::System.IntPtr new_Rectangle__SWIG_1(float jarg1, float jarg2, float jarg3);
343 |
344 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_new_Rectangle__SWIG_2")]
345 | public static extern global::System.IntPtr new_Rectangle__SWIG_2(float jarg1, float jarg2);
346 |
347 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_new_Rectangle__SWIG_3")]
348 | public static extern global::System.IntPtr new_Rectangle__SWIG_3(float jarg1);
349 |
350 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_new_Rectangle__SWIG_4")]
351 | public static extern global::System.IntPtr new_Rectangle__SWIG_4();
352 |
353 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_new_Rectangle__SWIG_5")]
354 | public static extern global::System.IntPtr new_Rectangle__SWIG_5(global::System.Runtime.InteropServices.HandleRef jarg1);
355 |
356 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_Rectangle_center")]
357 | public static extern global::System.IntPtr Rectangle_center(global::System.Runtime.InteropServices.HandleRef jarg1);
358 |
359 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_Rectangle_topLeft")]
360 | public static extern global::System.IntPtr Rectangle_topLeft(global::System.Runtime.InteropServices.HandleRef jarg1);
361 |
362 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_Rectangle_bottomRight")]
363 | public static extern global::System.IntPtr Rectangle_bottomRight(global::System.Runtime.InteropServices.HandleRef jarg1);
364 |
365 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_Rectangle_area")]
366 | public static extern float Rectangle_area(global::System.Runtime.InteropServices.HandleRef jarg1);
367 |
368 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_Rectangle_recenter")]
369 | public static extern void Rectangle_recenter(global::System.Runtime.InteropServices.HandleRef jarg1, float jarg2, float jarg3);
370 |
371 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_Rectangle_toString")]
372 | public static extern string Rectangle_toString(global::System.Runtime.InteropServices.HandleRef jarg1);
373 |
374 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_delete_Rectangle")]
375 | public static extern void delete_Rectangle(global::System.Runtime.InteropServices.HandleRef jarg1);
376 |
377 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_IntList_Clear")]
378 | public static extern void IntList_Clear(global::System.Runtime.InteropServices.HandleRef jarg1);
379 |
380 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_IntList_Add")]
381 | public static extern void IntList_Add(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
382 |
383 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_IntList_size")]
384 | public static extern uint IntList_size(global::System.Runtime.InteropServices.HandleRef jarg1);
385 |
386 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_IntList_capacity")]
387 | public static extern uint IntList_capacity(global::System.Runtime.InteropServices.HandleRef jarg1);
388 |
389 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_IntList_reserve")]
390 | public static extern void IntList_reserve(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2);
391 |
392 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_new_IntList__SWIG_0")]
393 | public static extern global::System.IntPtr new_IntList__SWIG_0();
394 |
395 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_new_IntList__SWIG_1")]
396 | public static extern global::System.IntPtr new_IntList__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1);
397 |
398 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_new_IntList__SWIG_2")]
399 | public static extern global::System.IntPtr new_IntList__SWIG_2(int jarg1);
400 |
401 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_IntList_getitemcopy")]
402 | public static extern int IntList_getitemcopy(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
403 |
404 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_IntList_getitem")]
405 | public static extern int IntList_getitem(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
406 |
407 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_IntList_setitem")]
408 | public static extern void IntList_setitem(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3);
409 |
410 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_IntList_AddRange")]
411 | public static extern void IntList_AddRange(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
412 |
413 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_IntList_GetRange")]
414 | public static extern global::System.IntPtr IntList_GetRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3);
415 |
416 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_IntList_Insert")]
417 | public static extern void IntList_Insert(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3);
418 |
419 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_IntList_InsertRange")]
420 | public static extern void IntList_InsertRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
421 |
422 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_IntList_RemoveAt")]
423 | public static extern void IntList_RemoveAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
424 |
425 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_IntList_RemoveRange")]
426 | public static extern void IntList_RemoveRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3);
427 |
428 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_IntList_Repeat")]
429 | public static extern global::System.IntPtr IntList_Repeat(int jarg1, int jarg2);
430 |
431 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_IntList_Reverse__SWIG_0")]
432 | public static extern void IntList_Reverse__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1);
433 |
434 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_IntList_Reverse__SWIG_1")]
435 | public static extern void IntList_Reverse__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3);
436 |
437 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_IntList_SetRange")]
438 | public static extern void IntList_SetRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
439 |
440 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_IntList_Contains")]
441 | public static extern bool IntList_Contains(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
442 |
443 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_IntList_IndexOf")]
444 | public static extern int IntList_IndexOf(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
445 |
446 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_IntList_LastIndexOf")]
447 | public static extern int IntList_LastIndexOf(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
448 |
449 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_IntList_Remove")]
450 | public static extern bool IntList_Remove(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
451 |
452 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_delete_IntList")]
453 | public static extern void delete_IntList(global::System.Runtime.InteropServices.HandleRef jarg1);
454 |
455 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_HeatMapTypeList_Clear")]
456 | public static extern void HeatMapTypeList_Clear(global::System.Runtime.InteropServices.HandleRef jarg1);
457 |
458 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_HeatMapTypeList_Add")]
459 | public static extern void HeatMapTypeList_Add(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
460 |
461 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_HeatMapTypeList_size")]
462 | public static extern uint HeatMapTypeList_size(global::System.Runtime.InteropServices.HandleRef jarg1);
463 |
464 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_HeatMapTypeList_capacity")]
465 | public static extern uint HeatMapTypeList_capacity(global::System.Runtime.InteropServices.HandleRef jarg1);
466 |
467 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_HeatMapTypeList_reserve")]
468 | public static extern void HeatMapTypeList_reserve(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2);
469 |
470 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_new_HeatMapTypeList__SWIG_0")]
471 | public static extern global::System.IntPtr new_HeatMapTypeList__SWIG_0();
472 |
473 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_new_HeatMapTypeList__SWIG_1")]
474 | public static extern global::System.IntPtr new_HeatMapTypeList__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1);
475 |
476 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_new_HeatMapTypeList__SWIG_2")]
477 | public static extern global::System.IntPtr new_HeatMapTypeList__SWIG_2(int jarg1);
478 |
479 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_HeatMapTypeList_getitemcopy")]
480 | public static extern int HeatMapTypeList_getitemcopy(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
481 |
482 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_HeatMapTypeList_getitem")]
483 | public static extern int HeatMapTypeList_getitem(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
484 |
485 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_HeatMapTypeList_setitem")]
486 | public static extern void HeatMapTypeList_setitem(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3);
487 |
488 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_HeatMapTypeList_AddRange")]
489 | public static extern void HeatMapTypeList_AddRange(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
490 |
491 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_HeatMapTypeList_GetRange")]
492 | public static extern global::System.IntPtr HeatMapTypeList_GetRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3);
493 |
494 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_HeatMapTypeList_Insert")]
495 | public static extern void HeatMapTypeList_Insert(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3);
496 |
497 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_HeatMapTypeList_InsertRange")]
498 | public static extern void HeatMapTypeList_InsertRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
499 |
500 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_HeatMapTypeList_RemoveAt")]
501 | public static extern void HeatMapTypeList_RemoveAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
502 |
503 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_HeatMapTypeList_RemoveRange")]
504 | public static extern void HeatMapTypeList_RemoveRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3);
505 |
506 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_HeatMapTypeList_Repeat")]
507 | public static extern global::System.IntPtr HeatMapTypeList_Repeat(int jarg1, int jarg2);
508 |
509 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_HeatMapTypeList_Reverse__SWIG_0")]
510 | public static extern void HeatMapTypeList_Reverse__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1);
511 |
512 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_HeatMapTypeList_Reverse__SWIG_1")]
513 | public static extern void HeatMapTypeList_Reverse__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3);
514 |
515 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_HeatMapTypeList_SetRange")]
516 | public static extern void HeatMapTypeList_SetRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
517 |
518 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_delete_HeatMapTypeList")]
519 | public static extern void delete_HeatMapTypeList(global::System.Runtime.InteropServices.HandleRef jarg1);
520 |
521 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_new_FloatArray__SWIG_0")]
522 | public static extern global::System.IntPtr new_FloatArray__SWIG_0(int jarg1);
523 |
524 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_new_FloatArray__SWIG_1")]
525 | public static extern global::System.IntPtr new_FloatArray__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1);
526 |
527 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_new_FloatArray__SWIG_2")]
528 | public static extern global::System.IntPtr new_FloatArray__SWIG_2();
529 |
530 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_new_FloatArray__SWIG_3")]
531 | public static extern global::System.IntPtr new_FloatArray__SWIG_3(int jarg1, float jarg2);
532 |
533 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_new_FloatArray__SWIG_4")]
534 | public static extern global::System.IntPtr new_FloatArray__SWIG_4(global::System.Runtime.InteropServices.HandleRef jarg1, float jarg2);
535 |
536 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_new_FloatArray__SWIG_5")]
537 | public static extern global::System.IntPtr new_FloatArray__SWIG_5(global::System.Runtime.InteropServices.HandleRef jarg1);
538 |
539 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatArray_clone")]
540 | public static extern global::System.IntPtr FloatArray_clone(global::System.Runtime.InteropServices.HandleRef jarg1);
541 |
542 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatArray_reset__SWIG_0")]
543 | public static extern void FloatArray_reset__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
544 |
545 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatArray_reset__SWIG_1")]
546 | public static extern void FloatArray_reset__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
547 |
548 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatArray_reset__SWIG_2")]
549 | public static extern void FloatArray_reset__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1);
550 |
551 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatArray_reset__SWIG_3")]
552 | public static extern void FloatArray_reset__SWIG_3(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, float jarg3);
553 |
554 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatArray_reset__SWIG_4")]
555 | public static extern void FloatArray_reset__SWIG_4(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, float jarg3);
556 |
557 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatArray_setFrom")]
558 | public static extern void FloatArray_setFrom(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
559 |
560 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatArray_setTo")]
561 | public static extern void FloatArray_setTo(global::System.Runtime.InteropServices.HandleRef jarg1, float jarg2);
562 |
563 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatArray_empty")]
564 | public static extern bool FloatArray_empty(global::System.Runtime.InteropServices.HandleRef jarg1);
565 |
566 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatArray_getSize__SWIG_0")]
567 | public static extern global::System.IntPtr FloatArray_getSize__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1);
568 |
569 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatArray_printSize")]
570 | public static extern string FloatArray_printSize(global::System.Runtime.InteropServices.HandleRef jarg1);
571 |
572 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatArray_getSize__SWIG_1")]
573 | public static extern int FloatArray_getSize__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
574 |
575 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatArray_getNumberDimensions")]
576 | public static extern uint FloatArray_getNumberDimensions(global::System.Runtime.InteropServices.HandleRef jarg1);
577 |
578 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatArray_getVolume__SWIG_0")]
579 | public static extern uint FloatArray_getVolume__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1);
580 |
581 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatArray_getVolume__SWIG_1")]
582 | public static extern uint FloatArray_getVolume__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3);
583 |
584 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatArray_getPtr")]
585 | public static extern global::System.IntPtr FloatArray_getPtr(global::System.Runtime.InteropServices.HandleRef jarg1);
586 |
587 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatArray_getConstPtr")]
588 | public static extern global::System.IntPtr FloatArray_getConstPtr(global::System.Runtime.InteropServices.HandleRef jarg1);
589 |
590 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatArray_getConstCvMat")]
591 | public static extern global::System.IntPtr FloatArray_getConstCvMat(global::System.Runtime.InteropServices.HandleRef jarg1);
592 |
593 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatArray_getCvMat")]
594 | public static extern global::System.IntPtr FloatArray_getCvMat(global::System.Runtime.InteropServices.HandleRef jarg1);
595 |
596 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatArray_at__SWIG_0")]
597 | public static extern global::System.IntPtr FloatArray_at__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
598 |
599 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatArray_at__SWIG_2")]
600 | public static extern global::System.IntPtr FloatArray_at__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
601 |
602 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatArray_toString")]
603 | public static extern string FloatArray_toString(global::System.Runtime.InteropServices.HandleRef jarg1);
604 |
605 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_delete_FloatArray")]
606 | public static extern void delete_FloatArray(global::System.Runtime.InteropServices.HandleRef jarg1);
607 |
608 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_new_FloatArray2Array__SWIG_0")]
609 | public static extern global::System.IntPtr new_FloatArray2Array__SWIG_0();
610 |
611 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_new_FloatArray2Array__SWIG_1")]
612 | public static extern global::System.IntPtr new_FloatArray2Array__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1);
613 |
614 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatArray2Array_size")]
615 | public static extern uint FloatArray2Array_size(global::System.Runtime.InteropServices.HandleRef jarg1);
616 |
617 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatArray2Array_empty")]
618 | public static extern bool FloatArray2Array_empty(global::System.Runtime.InteropServices.HandleRef jarg1);
619 |
620 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatArray2Array_Fill")]
621 | public static extern void FloatArray2Array_Fill(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
622 |
623 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatArray2Array_Swap")]
624 | public static extern void FloatArray2Array_Swap(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
625 |
626 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatArray2Array_getitemcopy")]
627 | public static extern global::System.IntPtr FloatArray2Array_getitemcopy(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
628 |
629 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatArray2Array_getitem")]
630 | public static extern global::System.IntPtr FloatArray2Array_getitem(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
631 |
632 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatArray2Array_setitem")]
633 | public static extern void FloatArray2Array_setitem(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
634 |
635 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatArray2Array_Reverse__SWIG_0")]
636 | public static extern void FloatArray2Array_Reverse__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1);
637 |
638 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatArray2Array_Reverse__SWIG_1")]
639 | public static extern void FloatArray2Array_Reverse__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3);
640 |
641 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_delete_FloatArray2Array")]
642 | public static extern void delete_FloatArray2Array(global::System.Runtime.InteropServices.HandleRef jarg1);
643 |
644 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_new_FloatRectangle2Array__SWIG_0")]
645 | public static extern global::System.IntPtr new_FloatRectangle2Array__SWIG_0();
646 |
647 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_new_FloatRectangle2Array__SWIG_1")]
648 | public static extern global::System.IntPtr new_FloatRectangle2Array__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1);
649 |
650 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatRectangle2Array_size")]
651 | public static extern uint FloatRectangle2Array_size(global::System.Runtime.InteropServices.HandleRef jarg1);
652 |
653 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatRectangle2Array_empty")]
654 | public static extern bool FloatRectangle2Array_empty(global::System.Runtime.InteropServices.HandleRef jarg1);
655 |
656 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatRectangle2Array_Fill")]
657 | public static extern void FloatRectangle2Array_Fill(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
658 |
659 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatRectangle2Array_Swap")]
660 | public static extern void FloatRectangle2Array_Swap(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
661 |
662 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatRectangle2Array_getitemcopy")]
663 | public static extern global::System.IntPtr FloatRectangle2Array_getitemcopy(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
664 |
665 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatRectangle2Array_getitem")]
666 | public static extern global::System.IntPtr FloatRectangle2Array_getitem(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
667 |
668 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatRectangle2Array_setitem")]
669 | public static extern void FloatRectangle2Array_setitem(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
670 |
671 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatRectangle2Array_Reverse__SWIG_0")]
672 | public static extern void FloatRectangle2Array_Reverse__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1);
673 |
674 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatRectangle2Array_Reverse__SWIG_1")]
675 | public static extern void FloatRectangle2Array_Reverse__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3);
676 |
677 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_delete_FloatRectangle2Array")]
678 | public static extern void delete_FloatRectangle2Array(global::System.Runtime.InteropServices.HandleRef jarg1);
679 |
680 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatRectangle2ArrayList_Clear")]
681 | public static extern void FloatRectangle2ArrayList_Clear(global::System.Runtime.InteropServices.HandleRef jarg1);
682 |
683 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatRectangle2ArrayList_Add")]
684 | public static extern void FloatRectangle2ArrayList_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
685 |
686 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatRectangle2ArrayList_size")]
687 | public static extern uint FloatRectangle2ArrayList_size(global::System.Runtime.InteropServices.HandleRef jarg1);
688 |
689 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatRectangle2ArrayList_capacity")]
690 | public static extern uint FloatRectangle2ArrayList_capacity(global::System.Runtime.InteropServices.HandleRef jarg1);
691 |
692 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatRectangle2ArrayList_reserve")]
693 | public static extern void FloatRectangle2ArrayList_reserve(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2);
694 |
695 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_new_FloatRectangle2ArrayList__SWIG_0")]
696 | public static extern global::System.IntPtr new_FloatRectangle2ArrayList__SWIG_0();
697 |
698 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_new_FloatRectangle2ArrayList__SWIG_1")]
699 | public static extern global::System.IntPtr new_FloatRectangle2ArrayList__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1);
700 |
701 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_new_FloatRectangle2ArrayList__SWIG_2")]
702 | public static extern global::System.IntPtr new_FloatRectangle2ArrayList__SWIG_2(int jarg1);
703 |
704 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatRectangle2ArrayList_getitemcopy")]
705 | public static extern global::System.IntPtr FloatRectangle2ArrayList_getitemcopy(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
706 |
707 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatRectangle2ArrayList_getitem")]
708 | public static extern global::System.IntPtr FloatRectangle2ArrayList_getitem(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
709 |
710 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatRectangle2ArrayList_setitem")]
711 | public static extern void FloatRectangle2ArrayList_setitem(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
712 |
713 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatRectangle2ArrayList_AddRange")]
714 | public static extern void FloatRectangle2ArrayList_AddRange(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
715 |
716 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatRectangle2ArrayList_GetRange")]
717 | public static extern global::System.IntPtr FloatRectangle2ArrayList_GetRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3);
718 |
719 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatRectangle2ArrayList_Insert")]
720 | public static extern void FloatRectangle2ArrayList_Insert(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
721 |
722 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatRectangle2ArrayList_InsertRange")]
723 | public static extern void FloatRectangle2ArrayList_InsertRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
724 |
725 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatRectangle2ArrayList_RemoveAt")]
726 | public static extern void FloatRectangle2ArrayList_RemoveAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
727 |
728 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatRectangle2ArrayList_RemoveRange")]
729 | public static extern void FloatRectangle2ArrayList_RemoveRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3);
730 |
731 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatRectangle2ArrayList_Repeat")]
732 | public static extern global::System.IntPtr FloatRectangle2ArrayList_Repeat(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2);
733 |
734 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatRectangle2ArrayList_Reverse__SWIG_0")]
735 | public static extern void FloatRectangle2ArrayList_Reverse__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1);
736 |
737 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatRectangle2ArrayList_Reverse__SWIG_1")]
738 | public static extern void FloatRectangle2ArrayList_Reverse__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3);
739 |
740 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_FloatRectangle2ArrayList_SetRange")]
741 | public static extern void FloatRectangle2ArrayList_SetRange(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
742 |
743 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_delete_FloatRectangle2ArrayList")]
744 | public static extern void delete_FloatRectangle2ArrayList(global::System.Runtime.InteropServices.HandleRef jarg1);
745 |
746 | [global::System.Runtime.InteropServices.DllImport("OpenPose", EntryPoint="CSharp_OpenPoseSharp_HandExtractorCaffe_SWIGUpcast")]
747 | public static extern global::System.IntPtr HandExtractorCaffe_SWIGUpcast(global::System.IntPtr jarg1);
748 | }
749 |
750 | }
751 |
--------------------------------------------------------------------------------