Inheritance: LayerBase
Example #1
0
 public ImageForm(IHandDataSource handDataSource)
     : this()
 {
     this.handDataSource = handDataSource;
     this.handDataSource.NewDataAvailable += new NewDataHandler<HandCollection>(handDataSource_NewDataAvailable);
     this.handLayer = new HandLayer(this.handDataSource);
     this.handLayer.ShowConvexHull = false;
 }
Example #2
0
 private void buttonHandTracking_Click(object sender, EventArgs e)
 {
     this.SetImageDataSource(this.dataSourceFactory.CreateDepthBitmapDataSource());
     var dataSource = (this.dataSourceFactory as OpenNIDataSourceFactory).CreateTrackingClusterDataSource();
     var handDataSource = new HandDataSource(this.dataSourceFactory.CreateShapeDataSource(dataSource, this.shapeSettings), this.handDetectionSettings);
     this.activeDataSources.Add(handDataSource);
     var layer = new HandLayer(handDataSource);
     this.videoControl.AddLayer(layer);
     handDataSource.Start();
 }