Ejemplo n.º 1
0
        public void Dispose()
        {
            if (readingLoop != null)
            {
                readingLoop.Failed       -= ReadingLoop_Failed;
                readingLoop.CaptureReady -= ReadingLoop_CaptureReady;
                readingLoop.Dispose();
            }

            transformation?.Dispose();
            depthOverColorImage?.Dispose();
        }
Ejemplo n.º 2
0
        public void Dispose()
        {
            if (!isDisposed)
            {
                isDisposed = true;

                readingLoop.CaptureReady -= ReadingLoop_CaptureReady;
                readingLoop.Failed       -= ReadingLoop_Failed;
                readingLoop.Dispose();

                processor.ImageUpdated -= Processor_ImageUpdated;
                processor.Stop();
                processor.Dispose();

                depthImage.Dispose();
                needUpdateBitmap.Dispose();
            }
        }
Ejemplo n.º 3
0
        public void Dispose()
        {
            if (readingLoop != null)
            {
                readingLoop.Failed       -= BackgroundLoop_Failed;
                readingLoop.CaptureReady -= ReadingLoop_CaptureReady;
                readingLoop.Dispose();
            }

            if (trackingLoop != null)
            {
                trackingLoop.Failed         -= BackgroundLoop_Failed;
                trackingLoop.BodyFrameReady -= TrackingLoop_BodyFrameReady;
                trackingLoop.Dispose();
            }

            bodyIndexMapTransformation?.Dispose();
        }