Skip to content

Ruslan-B/OpenNISharp2

Repository files navigation

OpenNISharp2 is a managed library for .NET/Mono

Based on OpenNI2 version from Occipital. https://github.com/occipital/openni2

Goal

Provide near native api support for structure sensor from Occipital. http://structure.io

Impementation details

Internaly wrapper using auto generated unmanaged OpenNI CAPI. ``OpenNISharp2.CppSharpUnsafeGenerator``` project is uses CppSharp to generate native bindings.

Work in progress:

  • PS1080 specific properties support;
  • API methods to cover:
// stream
internal static extern OniStatus oniStreamRegisterNewFrameCallback(_OniStream* stream, OniNewFrameCallback handler, byte* pCookie, OniCallbackHandleImpl** pHandle);
internal static extern byte oniStreamUnregisterNewFrameCallback(_OniStream* stream, OniCallbackHandleImpl* handle);
internal static extern OniStatus oniStreamSetFrameBuffersAllocator(_OniStream* stream, OniFrameAllocBufferCallback alloc, OniFrameFreeBufferCallback free, byte* pCookie);

// frame
???internal static extern byte oniFrameAddRef(OniFrame* pFrame);
???internal static extern byte oniFrameRelease(OniFrame* pFrame);

// callbacks
internal static extern OniStatus oniRegisterDeviceCallbacks(OniDeviceCallbacks pCallbacks, byte* pCookie, OniCallbackHandleImpl** pHandle);
internal static extern byte oniUnregisterDeviceCallbacks(OniCallbackHandleImpl* handle);

About

OpenNISharp2 is a managed library for .NET/Mono

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published