Hello, i'm trying to search for an area of an image.
2 ビュー (過去 30 日間)
古いコメントを表示
Suardi Suhaimi
2016 年 5 月 23 日
コメント済み: Suardi Suhaimi
2016 年 5 月 24 日
Hello, i'm trying to search for an area of a geometry which has the shape of approx. circle (as attached). I've tried using the imfill function but it doesn't work possibly because there are gaps due to the two electrodes. imclose also produce unsatisfactory results. How can I cut through the gap to form connected circle? Thanks in advance
0 件のコメント
採用された回答
Alessandro Masullo
2016 年 5 月 23 日
I don't know if this solution works for you, but I would use histeq to equalize the image first, then conv2 to convolve the image with a Gaussian (or imfilter), and finally edge with "canny" to detect the shape of the object. You'll have to play with the Gaussian and the canny thresholds, but you could get good results.
その他の回答 (1 件)
Walter Roberson
2016 年 5 月 24 日
imdilate and then imerode to get it to join the halves. Or if you have R2014b or later, you could get the coordinates of the boundary points and then use boundary() on them to find a hull that contains them.
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!