How to extract only object with white background using bounding box in MatLab?
Hi everyone,
I am a newbie in matlab.
I try to do segmentation to get seperately image and text in an image.
I use regionprops, so i got each boundingbox and one of the image is like this:
![](http://www.google.fr/imgres?espv=210&es_sm=93&biw=1745&bih=829&tbm=isch&tbnid=YJo2iglfGSlHZM%3A&imgrefurl=http%3A%2F%2Fwww.123rf.com%2Fphoto_11640780_collection-of-various-damaged-euro-coins-on-white-background-each-one-is-shot-separately.html&docid=gk9NB3wScK7C9M&imgurl=http%3A%2F%2Fus.123rf.com%2F400wm%2F400%2F400%2Fpicsfive%2Fpicsfive1112%2Fpicsfive111200161%2F11640780-collection-of-various-damaged-euro-coins-on-white-background-each-one-is-shot-separately.jpg&w=1200&h=1167&ei=4SndUpniB4GThgfolYDgAw&zoom=1&iact=rc&dur=2656&page=2&start=29&ndsp=38&ved=0CIICEK0DMDc)
My problem is that I crop the original image to get each connected component using boundingbox. However, I want only the object for instance the coin with white background.
Any idea ?
_ EDITED _
I crop the original image to get each connected component using boundingbox .
My problem is that when the original image are cropped in rectangle shape, some background of the crop image have coin(that what i want) and some text or line within the rectangle shape (that i dont want),
How can I remove those text or line within the rectangle shape of the crop image?
2 个评论
采纳的回答
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/174245/image.png)
17 个评论
更多回答(1 个)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/174101/image.jpeg)
0 个评论
另请参阅
类别
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!