how to clean up and refine edges of this image
9 ビュー (過去 30 日間)
古いコメントを表示
Hi, In the image shown above, I want to remove the noise from the main image shown in the red circles. Also i want to smooth out the edges of the image. I tried curve fitting of the end points, but I am not getting the best results. Any suggestions?

3 件のコメント
KALYAN ACHARJYA
2018 年 9 月 7 日
編集済み: KALYAN ACHARJYA
2018 年 9 月 7 日
You can do that very easily, upload/attach the original image(without red circles)
回答 (2 件)
Image Analyst
2018 年 9 月 7 日
One way is to blur it and re-threshold it.

See attached testGrayImage.m
Another way is to get the x and y coordinates with bwboundaries() and smooth them with a Savitzky-golay Filter (a moving polynomial filter). See attached demo.
4 件のコメント
Image Analyst
2018 年 9 月 18 日
That's the midpoint of the blur. If you pick that, then the area of the second binary image should be really close to the area of the original binary image.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!