internal void UpdateOptions(ref DepthDataCleanerOptions depthDataCleanerOptions, ref CloudGeneratorOptions cloudGeneratorOptions, IPointCloudSource <PointXYZConfidence> pointCloudSource)
        {
            // -- Set Generation Options
            cloudGeneratorOptions.clusterRadius = clusterRadius;
            cloudGeneratorOptions.debugDisplay  = debugDisplay;

            // -- Set DepthData Cleaner Options
            depthDataCleanerOptions.maximumNoise            = maximumNoise;
            depthDataCleanerOptions.minimumDepth            = minimumDepth;
            depthDataCleanerOptions.maximumDepth            = maximumDepth;
            depthDataCleanerOptions.minimumConfidence       = minimumConfidence;
            depthDataCleanerOptions.medianFilterSize        = medianFilterSize;
            depthDataCleanerOptions.morphologicalFilterSize = morphologicalFilterSize;
            depthDataCleanerOptions.morpholicalIteration    = morpholicalIteration;
            depthDataCleanerOptions.debugDisplay            = debugDisplay;
            depthDataCleanerOptions.cameraRotated180        = debugDisplay;



            // -- Set DepthData Cleaner Options
            // KernelHandsInterop.SetDepthDataCleanerOptions(ref depthDataCleanerOptions);

            // -- Set PointCloudSource Generation Options
            pointCloudSource.SetPointCloudGeneratorOptions(cloudGeneratorOptions);
        }
Exemple #2
0
        /// <summary>   Late update. </summary>
        private void LateUpdate()
        {
            HandKernelInterop.SetDepthDataCleanerOptions(ref depthDataCleanerOptions);

            if (_pointCloudSource != null)
            {
                _pointCloudSource.SetPointCloudGeneratorOptions(cloudGeneratorOptions);
            }
            if (_handDataSource != null)
            {
                _handDataSource.SetHandOptions(handProcessorOptions);
            }
        }