public kinectApp(Canvas c, Canvas top, Label l, featureExtractor featExtractor) { //update the feature globalVars.kinectOn = false; contextCounter = 0; this.kinect = null; this.fExtractor = featExtractor; this.features = new startFeatures(); globalVars.gFeature = features; //globalVars.mFeature = this.file = new fileWriter(null); this.canvas = c; this.topCanvas = top; this.spinePos = l; //Runtime.Kinects. if (Runtime.Kinects.Count == 0) { isKinectRunning = false; } else if (Runtime.Kinects.Count > 0 ) { isKinectRunning = true; } }
private void saveposFeat() { double[] pData; fileWriter f = new fileWriter(null, "newPosfeature.csv"); do { pData = posQ.Dequeue(); if (pData != null) { Console.Write(pData + ","); f.WritefeatureSet(pData); } } while ((pData != null)); //Console.Write("\n"); f.closeFile(); }
private void writeFeatures() { fileWriter f = new fileWriter(null, "feature.csv"); f.writeFeatures(feature); f.closeFile(); if (globalVars.reducedRecord == true) { makeFeatureSet(); fileWriter f1 = new fileWriter(null, "Shortfeature.csv"); f1.WritefeatureSet(this.featureSet); f1.closeFile(); } }