private void DrawFeature(Graphics _canvas, Color _color, int _width, Ipoint _point, Point _topLeft) { int xd = (int)(_point.x + _topLeft.X); int yd = (int)(_point.y + _topLeft.Y); float scale = _point.scale; float orientation = _point.orientation; float radius = ((9.0f / 1.2f) * scale) / 3.0f; Pen penPoint = new Pen(_color, _width); _canvas.DrawEllipse(penPoint, xd - radius, yd - radius, 2 * radius, 2 * radius); double dx = radius * Math.Cos(orientation); double dy = radius * Math.Sin(orientation); _canvas.DrawLine(penPoint, new Point(xd, yd), new Point((int)(xd + dx), (int)(yd + dy))); penPoint.Dispose(); }
public override void ResetTrackData() { FoundFeatures.Clear(); MatchedFeature = null; SearchWindow = new Point(0, 0); }