using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace bbiwarg.Recognition.Tracking { class SimilarityContainer where T : TrackableObject { public float Similarity { get; private set; } public TrackableObjectHistory History { get; private set; } public T DetectedObject { get; private set; } public SimilarityContainer(TrackableObjectHistory history, T detectedObject) { Similarity = detectedObject.getSimilarity(history.LastObject); History = history; DetectedObject = detectedObject; } } }