wyntaron
wyntaron

Reputation: 1

Contour matching

I'm having two contours, one given as a set of points and the other given as a set of lines and arcs. What is the best way to compare the two contours, in C#? I have already compared the convex hulls of the two contours, so I'm trying to refine the match for the rest of the features.

Upvotes: 0

Views: 690

Answers (1)

Olivier Jacot-Descombes
Olivier Jacot-Descombes

Reputation: 112352

The System.Drawing.Drawing2D.GraphicsPath class has intersting methods which could be helpful for you.

IsOutlineVisible with various overloads tests if a point lies on the path's outline. IsVisible tests if a point lies inside of a closed path.

Upvotes: 1

Related Questions