public SDKClusterDataSource(INuiRuntime nuiRuntime, IClusterFactory clusterFactory, IDepthPointFilter <ImageFrame> filter)
     : base(nuiRuntime)
 {
     this.CurrentValue   = new ClusterCollection();
     this.clusterFactory = clusterFactory;
     this.filter         = filter;
 }
示例#2
0
 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;
 }
示例#3
0
 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());
 }
示例#4
0
 //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());
 }
示例#5
0
        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);
        }
示例#6
0
        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);
        }