public ChoppingPlane(System.Windows.Media.Media3D.Point3D p1, System.Windows.Media.Media3D.Point3D p2, System.Windows.Media.Media3D.Point3D p3) { SetNewPoints(p1, p2, p3); kinect = Kinect.Instance; }
public Configuration() { InitializeComponent(); floorPoints = new List<FloorPointControl>(); kinect = Kinect.Instance; //kinect.AverageWindowSize = 2; depthThreshold = new DepthThreshold(); rgbMask = new RGBMask(kinect.RGB, new System.Drawing.Rectangle(0, 0, kinect.DepthWidth, kinect.DepthHeight), kinect.RgbWidth); loadConfig(defaultConfigFileLocation); depthThreshold.AverageOldDepth = true; }
public DanceFloor(Configuration p) { InitializeComponent(); rand = new Random(); parent = p; floorTiles = new List<Rectangle>(); for (int x = 0; x < x_dim; x++) { for (int y = 0; y < y_dim; y++) { Rectangle addMe = new Rectangle(); addMe.Width = r_width; addMe.Height = r_height; addMe.RenderTransform = new TranslateTransform(x * r_width, y * r_height); addMe.Fill = new SolidColorBrush(baseColor); addMe.HorizontalAlignment = System.Windows.HorizontalAlignment.Left; addMe.VerticalAlignment = System.Windows.VerticalAlignment.Top; floorTiles.Add(addMe); grid1.Children.Add(addMe); } } kinect = Kinect.Instance; }
public FloorPoints() { kinect = Kinect.Instance; }
public DepthThreshold() { kinect = Kinect.Instance; thresholdValues = new ushort[kinect.Depth.Length]; oldDepthValues = new ushort[kinect.Depth.Length]; }
public ChoppingPlane() { kinect = Kinect.Instance; }