1234567891011121314151617181920212223242526 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace bbiwarg.Recognition.Tracking
- {
- abstract class TrackableObject
- {
- public bool IsTracked { get; private set; }
- public TrackableObjectHistory<TrackableObject> History { get; private set; }
- public int TrackID { get { return (IsTracked) ? History.ID : 0; } }
- public TrackableObject() {
- IsTracked = false;
- }
- abstract public float getSimilarity(TrackableObject compareObject);
- public void setTracked(TrackableObjectHistory<TrackableObject> history) {
- IsTracked = true;
- History = history;
- }
- }
- }
|