Hi, I want to perform morphological opeartion on this image erosion and dilation on rice grain kindly help me.I am a little bit confuse in forming the structure element which shape should i choose for rice grain.
1 次查看(过去 30 天)
显示 更早的评论
回答(1 个)
Image Analyst
2017-12-30
Use imdilate and imerode.
2 个评论
Image Analyst
2018-1-1
Depends on what you want to accomplish. Usually the 'disk' shape is good because it's the same size in all directions. In your case I think it would be fine, but in general the shape depends on the shape of the binary structures you're trying to get or remove.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!