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.
2 views (last 30 days)
Show older comments
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/168302/image.jpeg)
Answers (1)
Image Analyst
on 30 Dec 2017
Use imdilate and imerode.
2 Comments
Image Analyst
on 1 Jan 2018
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.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!