public VolumeFilterClusterDataSource(IDepthPointerDataSource dataSource, ClusterDataSourceSettings settings) : base(dataSource, settings) { this.filterVolumes = new List<Volume>(); this.settings = settings; }
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()) { }
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); }
public DepthImageDataSource(IDepthPointerDataSource depthDataSource) : base(depthDataSource, new DepthImageSourceFactory(depthDataSource.MaxDepth)) { }
public DepthBitmapDataSource(IDepthPointerDataSource depthDataSource) : base(depthDataSource, new DepthBitmapFactory(depthDataSource.MaxDepth)) { }
public OpenNIClusterDataSource(IDepthPointerDataSource dataSource, ClusterDataSourceSettings settings) : this(dataSource, new KMeansClusterFactory(settings, dataSource.Size), new PointerDepthPointFilter(dataSource.Size, settings.MinimumDepthThreshold, settings.MaximumDepthThreshold, settings.LowerBorder)) { }