namespace BBIWARG.Recognition.Tracking
{
///
/// Encapsulates the similarity between a TrackedObject and a TrackableObject.
///
/// Type of the TrackableObject
/// Type of the TrackedObject
public class Similarity
where T : TrackableObject
where TrackedT : TrackedObject
{
///
/// the detected object
///
public T DetectedObject { get; private set; }
///
/// the tracked object
///
public TrackedT TrackedObject { get; private set; }
///
/// the similarity value [0-1]
///
public float Value { get; private set; }
///
/// Initializes a new instance of the Similarity class.
///
/// The tracked object.
/// The detected object.
/// The value.
public Similarity(TrackedT trackedObject, T detectedObject, float value)
{
TrackedObject = trackedObject;
DetectedObject = detectedObject;
Value = value;
}
}
}