public VolumeFilterClusterDataSource(IDepthPointerDataSource dataSource, ClusterDataSourceSettings settings)
     : base(dataSource, settings)
 {
     this.filterVolumes = new List<Volume>();
     this.settings = settings;
 }
Ejemplo n.º 2
0
 private IDepthPointerDataSource GetDepthPointerDataSource()
 {
     lock (this)
     {
         if (this.depthPointerDataSource == null)
         {
             var adapter = new DepthGeneratorAdapter(this.GetDepthGenerator());
             this.runner.Add(adapter);
             this.depthPointerDataSource = new DepthPointerDataSource(adapter);
         }
     }
     return this.depthPointerDataSource;
 }
 public VolumeFilterClusterDataSource(IDepthPointerDataSource dataSource)
     : this(dataSource, new ClusterDataSourceSettings())
 { }
Ejemplo n.º 4
0
        public TrackingClusterDataSource(Context context, DepthGenerator depthGenerator, IDepthPointerDataSource dataSource)
            : base(dataSource)
        {
            this.context        = context;
            this.depthGenerator = depthGenerator;
            this.size           = dataSource.Size;
            this.CurrentValue   = new ClusterCollection();

            this.sessionManager = new SessionManager(context, "Wave", "RaiseHand");
            this.pointControl   = new PointControl();
            this.pointControl.PrimaryPointUpdate += new EventHandler <HandEventArgs>(pointControl_PrimaryPointUpdate);
            this.sessionManager.AddListener(this.pointControl);
        }
Ejemplo n.º 5
0
 public DepthImageDataSource(IDepthPointerDataSource depthDataSource)
     : base(depthDataSource, new DepthImageSourceFactory(depthDataSource.MaxDepth))
 {
 }
Ejemplo n.º 6
0
 public DepthImageDataSource(IDepthPointerDataSource depthDataSource)
     : base(depthDataSource, new DepthImageSourceFactory(depthDataSource.MaxDepth))
 { }
Ejemplo n.º 7
0
 public DepthBitmapDataSource(IDepthPointerDataSource depthDataSource)
     : base(depthDataSource, new DepthBitmapFactory(depthDataSource.MaxDepth))
 { }
Ejemplo n.º 8
0
 public OpenNIClusterDataSource(IDepthPointerDataSource dataSource, ClusterDataSourceSettings settings)
     : this(dataSource, new KMeansClusterFactory(settings, dataSource.Size), new PointerDepthPointFilter(dataSource.Size, settings.MinimumDepthThreshold, settings.MaximumDepthThreshold, settings.LowerBorder))
 {
 }