Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

What method to use to get a fitted curve

Hi, I am looking at a video of a, say Ice Hockey game. My goal is to detect the external boundary of the perimter board. But, of course there are players blocking the view. I was able to set some threshold and am able to generate contours of the visibile perimter board. I am able to detect the contour reasonably well. But, the contours are not smooth. When I draw the contours, the edges are jagged. What method can I use to approximate and draw a smooth fitted curv e? The curve need not pass through all the points , per se.

I have tried the approxpolydp function.but that is not providing a good output as per my requirement.