Example #1
0
        protected virtual void OnDepthFrameReceived(KinectBase.DepthFrameEventArgs e)
        {
            if (DepthFrameReceived != null)
            {
                DepthFrameReceived(this, e);
            }

            //Put the image array back in the image pool
            depthImagePool.PutObject(e.image);
        }
Example #2
0
        protected virtual void OnColorFrameReceived(KinectBase.ColorFrameEventArgs e)
        {
            if (ColorFrameReceived != null)
            {
                ColorFrameReceived(this, e);
            }

            //Put the object back in the image pool
            if (e.isIR)
            {
                irImagePool.PutObject(e.image);
            }
            else
            {
                colorImagePool.PutObject(e.image);
            }
        }