예제 #1
0
 /// <summary>
 /// Start the comparison process for the recorded Vcl.Utilities.IHumanoids
 /// using the pre-setted or the default activity.
 /// </summary>
 /// <param name="recorded_motion">The recorded Vcl.Utilities.IHumanoids.</param>
 public void Compute_comparison(HumanoidStream recorded_motion)
 {
     var filename = System.IO.Path.GetFullPath(CResources.DEFAULT_SAVE_RECORDING_FILE_PATH);
     using (var writer = new SkelextV20Writer(filename))
     {
         writer.Write(recorded_motion);
     }
     Compute_comparison(filename);
 }
예제 #2
0
 /// <summary>
 /// Start the comparison process for the recorded Vcl.Utilities.IHumanoids
 /// using as the reference the specified activity.
 /// </summary>
 /// <param name="recorded_motion">The recorded Vcl.Utilities.IHumanoids.</param>
 /// <param name="action_name">The activity to compare with.</param>
 public void Compute_comparison(HumanoidStream recorded_motion, Properties.Activity action_name)
 {
     ActionName = action_name;
     Compute_comparison(recorded_motion);
 }
예제 #3
0
 void OnEnable()
 {
     this.frameNumber = 0;
     this.hum = new K2Skeleton("Kinect2 Skeleton", new string[]
      {
         string.Format("version={0}", "1.2"),
         string.Format("frameNumber={0}", frameNumber),
         string.Format("timestamp={0}", (frameNumber * 32).ToString("X11")),
         string.Format("userCount={0}", 1),
         string.Format("userID={0}", 1),
         string.Format("state={0}", 1)
     });
     this.stream = new HumanoidStream(new IHumanoid[1] {hum });
     this.streamwriter = new SkelextV20Writer(Path.Combine(this.OutputDirectory,this.Filename));
 }