Connecting missing boundary segments of particles in image
3 次查看(过去 30 天)
显示 更早的评论
I have to segment each particle seapartely given in the image. I am trying to find its boundary edges. I have attached original image and obtained boundary image, I have to connect the missing boundary segments in the given image. Please help.
0 个评论
回答(1 个)
Image Analyst
2020-6-28
Fixing the image capture problem can make the image processing so much easier. Why don't you just simply separate the rocks before you image them? Then just threshold, fill, and call bwboundaries.
mask = grayImage < someValue;
mask = imfill(mask, 'holes');
boundaries = bwboundaries(mask);
If you want to do it the hard way, which I strongly advise against, see Steve's blog:
4 个评论
Image Analyst
2020-6-29
Who is dictating all of these disabling requirements upon you? Do they want to get the job done or not? Who cares how it gets done as long as it gets done?
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!