public KinectRemoteProvider(string hostname, int port, KinectConfiguration overrideConfiguration) { this.serverHostname = hostname; this.serverPort = port; this.configuration = overrideConfiguration; this.frames = new LinkedList <KinectFrame>(); }
public bool Import(string json) { try { KinectConfiguration fromJson = JsonUtility.FromJson <KinectConfiguration>(json); this.transformationMode = fromJson.transformationMode; this.colorResolution = fromJson.colorResolution; this.depthMode = fromJson.depthMode; this.fps = fromJson.fps; this.volumeScale = fromJson.volumeScale; this.depthRangeModifier = fromJson.depthRangeModifier; return(true); } catch (Exception ex) { Debug.Log("Kinect Configuration deserialization failed with :" + ex.Message); return(false); } }
public KinectLocalFile(string filepath, KinectConfiguration backupConfiguration) { this.filepath = filepath; configuration = backupConfiguration; frames = Interpret(); }