private void AddTrainingExampleWithVideo(Sequence recentTrainedExample, byte[][] video) { this.examples.Add(recentTrainedExample); ShowOptions(); }
private void AddTrainingExample(Sequence recentTrainedExample) { this.examples.Add(recentTrainedExample); ShowOptions(); }
private int EvaluteSkeleton(Sequence seq) { return SkelHMM.Evaluate(seq, s => s.SkeletonFeatures); }
private int EvaluateHand(Sequence seq) { return HandHMM.Evaluate(seq, s => s.HandFeatures); }
private void OnFinishedRecordingVideo(Sequence sequence) { onVideoRecordingFinishedEventHandler(sequence, videoSequence.ToArray()); videoSequence.Clear(); }
/// <summary> /// Calculate the probability that the given HMM generated the seen observations. /// </summary> /// <param name="sequence">A sequence of observations</param> /// <param name="selectFeatures">A function which extracts the features of each frame</param> /// <returns>The Probability that the hmm generated the observations</returns> public int Evaluate(Sequence sequence, Func<Sequence, double[][]> selectFeatures) { return Evaluate(selectFeatures(sequence)); }