Accord.Vision.Tracking.TrackingObject.Clone C# (CSharp) Method

Clone() public method

Creates a new object that is a copy of the current instance.
public Clone ( bool excludeImage = true ) : TrackingObject
excludeImage bool Pass true to not include /// the in the copy object.
return TrackingObject
        public TrackingObject Clone(bool excludeImage = true)
        {
            TrackingObject obj = new TrackingObject();
            obj.Angle = Angle;
            obj.Center = Center;
            obj.Rectangle = Rectangle;
            obj.Tag = Tag;

            if (!excludeImage)
                obj.Image = Image.Clone();

            return obj;
        }