public SDKClusterDataSource(INuiRuntime nuiRuntime, IClusterFactory clusterFactory, IDepthPointFilter <ImageFrame> filter) : base(nuiRuntime) { this.CurrentValue = new ClusterCollection(); this.clusterFactory = clusterFactory; this.filter = filter; }
public OpenNIClusterDataSource(IDepthPointerDataSource dataSource, IClusterFactory clusterFactory, IDepthPointFilter <IntPtr> filter) : base(dataSource) { this.size = dataSource.Size; this.CurrentValue = new ClusterCollection(); this.clusterFactory = clusterFactory; this.filter = filter; }
public SDKClusterDataSource(IKinectSensor nuiRuntime, IClusterFactory clusterFactory, IDepthPointFilter <DepthImageFrame> filter) : base(nuiRuntime) { this.CurrentValue = new ClusterCollection(); this.clusterFactory = clusterFactory; this.filter = filter; this.queue = new ConcurrentQueue <DepthImageFrame>(); this.runner = new ActionRunner(() => Process()); }
//public SDKClusterDataSource(IKinectSensor nuiRuntime, IClusterFactory clusterFactory, IDepthPointFilter<DepthImageFrame> filter) // : base(nuiRuntime) // older version public SDKClusterDataSource(IKinectSensor nuiRuntime, IClusterFactory clusterFactory, IDepthPointFilter <DepthFrame> filter) : base(nuiRuntime) // update: using DepthFrame instead of DeothImageFrame { this.CurrentValue = new ClusterCollection(); this.clusterFactory = clusterFactory; this.filter = filter; //this.queue = new ConcurrentQueue<DepthImageFrame>(); // older version this.queue = new ConcurrentQueue <DepthFrame>(); // update: using DepthFrame instead of DepthImageFrame this.runner = new ActionRunner(() => Process()); }
public HandDataFactory(IntSize size, ClusterDataSourceSettings clusteringSettings, ShapeDataSourceSettings shapeSettings, HandDataSourceSettings handSettings) { this.clusteringSettings = clusteringSettings; this.shapeSettings = shapeSettings; this.handSettings = handSettings; this.clusterFactory = new KMeansClusterFactory(this.clusteringSettings, size); this.filter = new PointerDepthPointFilter(size, this.clusteringSettings.MinimumDepthThreshold, this.clusteringSettings.MaximumDepthThreshold, this.clusteringSettings.LowerBorder); this.shapeFactory = new ClusterShapeFactory(this.shapeSettings); this.handFactory = new ShapeHandDataFactory(this.handSettings); }