コード例 #1
0
ファイル: Stream.cs プロジェクト: tigerIonic/KinectStreamer
 public Stream(Boolean shouldSendCloud, Boolean shouldSendSkeleton, IPAddress ipAdress, int cloudPort, int maxNumberOfPoints, int skullPort, int numberOfVerticesToSkip)
 {
     kinect = new Kinect();
     /* TODO : avoid senders initialization if should not send */
     pointsSender   = new PointsSender(ipAdress, cloudPort, maxNumberOfPoints, numberOfVerticesToSkip);
     skullSender    = new SkullSender(ipAdress, skullPort);
     frameProcessor = new FrameProcessor(shouldSendCloud, shouldSendSkeleton, pointsSender, skullSender);
 }
コード例 #2
0
        public FrameProcessor(Boolean shouldSendCloud, Boolean shouldSendSkeleton, PointsSender pointsSender, SkullSender skullSender)
        {
            this.shouldSendCloud    = shouldSendCloud;
            this.shouldSendSkeleton = shouldSendSkeleton;

            this.pointsSender = pointsSender;
            this.skullSender  = skullSender;

            initializationDone = false;
            coordinateMapper   = KinectSensor.GetDefault().CoordinateMapper;
        }