HOw can I use Morphological commands for boundary?
Show older comments
Hello All,I want to remove boundary around an image and I want to know how can morphological commands help me? Which command of morphological commands should I use? I have attached the image that I want to remove the boundary around it.
Answers (1)
Image Analyst
on 21 Jan 2014
Edited: Image Analyst
on 21 Jan 2014
0 votes
Try imerode.
- threshold to get a binary image.
- call imerode
- subtract from original binary image
- erase boundary: grayImage(binaryImage) = 0
If it doesn't do what you want, then attach your code.
3 Comments
Faranak
on 21 Jan 2014
Image Analyst
on 21 Jan 2014
Explain in more detail what you consider the "boundaries" of that image to be.
Faranak
on 21 Jan 2014
Categories
Find more on Morphological Operations in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!