Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        public static bool init(FubiUtils.SensorOptions options)
        {
            bool ret = true;

            if (!isInitialized())
            {
                ret = FubiInternal.init(options.m_depthOptions.m_width, options.m_depthOptions.m_height, options.m_depthOptions.m_fps,
                                        options.m_rgbOptions.m_width, options.m_rgbOptions.m_height, options.m_rgbOptions.m_fps,
                                        options.m_irOptions.m_width, options.m_irOptions.m_height, options.m_irOptions.m_fps,
                                        options.m_type,
                                        options.m_profile, options.m_mirrorStreams, options.m_smoothing);
            }
            return(ret);
        }