public static bool init(string openniXmlconfig, FubiUtils.SkeletonProfile profile = FubiUtils.SkeletonProfile.ALL, bool mirrorStream = true, float smoothing = 0) { bool ret = true; if (!isInitialized()) { IntPtr openNiXmlPtr = Marshal.StringToHGlobalAnsi(openniXmlconfig); ret = FubiInternal.init(openNiXmlPtr, profile, mirrorStream, smoothing); Marshal.FreeHGlobal(openNiXmlPtr); } return(ret); }
public SensorOptions(StreamOptions depthOptions, StreamOptions rgbOptions, StreamOptions irOptions, SensorType sensorType = SensorType.OPENNI2, FubiUtils.SkeletonProfile profile = FubiUtils.SkeletonProfile.ALL, bool mirrorStreams = true, float smoothing = 0) { m_depthOptions = depthOptions; m_irOptions = irOptions; m_rgbOptions = rgbOptions; m_profile = profile; m_mirrorStreams = mirrorStreams; m_smoothing = smoothing; m_type = sensorType; }
internal static extern bool switchSensor(FubiUtils.SensorType type, int depthWidth, int depthHeight, int depthFPS = 30, int rgbWidth = 640, int rgbHeight = 480, int rgbFPS = 30, int irWidth = -1, int irHeight = -1, int irFPS = -1, FubiUtils.SkeletonProfile profile = FubiUtils.SkeletonProfile.ALL, [MarshalAs(UnmanagedType.U1)] bool mirrorStream = true, float smoothing = 0);
internal static extern bool init(IntPtr openniXmlconfig, FubiUtils.SkeletonProfile profile, [MarshalAs(UnmanagedType.U1)] bool mirrorStream = true, float smoothing = 0);