Exemple #1
0
 public KinectRemoteProvider(string hostname, int port, KinectConfiguration overrideConfiguration)
 {
     this.serverHostname = hostname;
     this.serverPort     = port;
     this.configuration  = overrideConfiguration;
     this.frames         = new LinkedList <KinectFrame>();
 }
Exemple #2
0
 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);
     }
 }
Exemple #3
0
 public KinectLocalFile(string filepath, KinectConfiguration backupConfiguration)
 {
     this.filepath = filepath;
     configuration = backupConfiguration;
     frames        = Interpret();
 }