using an average filter on a closed curve

1 view (last 30 days)
Tony D
Tony D on 2 Jul 2013
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.

Answers (1)

Image Analyst
Image Analyst on 2 Jul 2013
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

Community Treasure Hunt

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

Start Hunting!