public FiguresTrackingCompleteData Track(ChessboardTrackingCompleteData chessboardData) { var figuresData = new FiguresTrackingCompleteData(chessboardData); (figuresData.ResultData.TrackingState, figuresData.ResultData.PointCountsOverFields) = FiguresLocalizationAlgorithm.LocateFigures( figuresData.KinectData, figuresData.ChessboardData.FieldSize, figuresData.PlaneData.CannyDepthData, figuresData.UserParameters, figuresData.ResultData, figuresData.PlaneData.ColorBitmap, chessboardData.TrackingStateOfGame); var handDetected = HandDetectionAlgorithm.HandDetected( figuresData.KinectData.CameraSpacePointsFromDepthData, figuresData.ChessboardData.FieldSize ); figuresData.ResultData.SceneDisrupted = handDetected || figuresData.ResultData.SceneDisrupted; return(figuresData); }
public FiguresLocalization() { HandDetectionAlgorithm = new HandDetectionAlgorithm(); FiguresLocalizationAlgorithm = new FiguresLocalizationAlgorithm(); }