예제 #1
0
파일: KinectBase.cs 프로젝트: Osceus/Kinect
 public KinectBase(Kinect k)
 {
     this.Kinect = k;
     this.Kinect.NewSpeechRecognizedResult += new KinectLib.Kinect.NewSpeechRecognizedResultDelegate(Kinect_NewSpeechRecognizedResult);
     this.Kinect.NewDepthFrame += new KinectLib.Kinect.DepthFrameReadyDelegate(Kinect_NewDepthFrame);
     this.Kinect.NewSkeletonFrame += new KinectLib.Kinect.SkeletonFrameReadyDelegate(Kinect_NewSkeletonFrame);
     this.Kinect.NewVideoFrame += new KinectLib.Kinect.VideoFrameReadyDelegate(Kinect_NewVideoFrame);
     this.Kinect.NewRecordedAudio += new KinectLib.Kinect.AudioStreamRecorded(Kinect_NewRecordedAudio);
 }
예제 #2
0
 public KinectAudioRecorder(Kinect k, string fileName, int recordingTime)
     : base(k)
 {
     this.FileName = fileName;
     this.AudioFile = new FileStream(this.FileName, FileMode.Create);
     this.RecordingTime = recordingTime;
     this.RecordingLength = this.RecordingTime * 2 * 16000;
     this.TotalCount = 0;
     this.writeWAVHeader();
     this.Start = true;
 }
예제 #3
0
 public MemoryStorage(Kinect k, StorageOptions options)
     : base(k, options)
 {
     if (this.Options.StoreSkeleton)
     {
         this.SkeletonFrames = new ConcurrentQueue<SkeletonFrame>();
     }
     if (this.Options.StoreDepth)
     {
         this.DepthImages = new ConcurrentQueue<DepthImageFrame>();
     }
     if (this.Options.StoreColor)
     {
         this.ColorImages = new ConcurrentQueue<ImageFrame>();
     }
 }
예제 #4
0
 public CompressedKinect(Kinect k)
     : base(k)
 {
 }
예제 #5
0
 public BitmapGenerator(Kinect k)
     : base(k)
 {
 }
예제 #6
0
 public KinectStorage(Kinect k, StorageOptions options)
     : base(k)
 {
     this.Options = options;
 }