SimilarityContainer.cs 665 B

123456789101112131415161718192021
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace bbiwarg.Recognition.Tracking
  7. {
  8. class SimilarityContainer<T> where T : TrackableObject
  9. {
  10. public float Similarity { get; private set; }
  11. public TrackableObjectHistory<T> History { get; private set; }
  12. public T DetectedObject { get; private set; }
  13. public SimilarityContainer(TrackableObjectHistory<T> history, T detectedObject) {
  14. Similarity = detectedObject.getSimilarity(history.LastObject);
  15. History = history;
  16. DetectedObject = detectedObject;
  17. }
  18. }
  19. }