using an average filter on a closed curve

I want to use some smoothing method to reduce some noise in the two inner closed curves below. The curve is defined by a 2-D matrix. Maybe using some type of averaging filter or smoothing function? I would also like to be able to control the degree of smoothing that occurs.

Réponses (1)

Image Analyst
Image Analyst le 2 Juil 2013

0 votes

Where did this curve come from? Are they contour lines or edges from an image? If so, you can just blur the image with conv2() before you extract the contour lines or edges. Or you can look into alpha shapes. http://cgm.cs.mcgill.ca/~godfried/teaching/projects97/belair/alpha.html

Question posée :

le 2 Juil 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by