Thresholding and removed unwanted region
4 ビュー (過去 30 日間)
古いコメントを表示
Hi guys.
I have problem for my project. Here is the picture of my image. I want to choose shape on object 1 and object 2 and remove the others. I already tried using threshold like Otsu's method. Then i successfully get the object 1 and 2. However,I also get the rectangle shape of light blue. How can I remove region object 3 and 4? Do i need to pre processing again?
Thanks in advance.
0 件のコメント
回答 (1 件)
Image Analyst
2015 年 1 月 5 日
There are so many ways to do this, like you could label the binary image and use ismember() to extract only the 2 objects you want based on their centroid location or label number. You could also just set your binary image to zero in the quadrants that you know you don't want. If we tell you something that will work with this image you'll probably says "Well it doesn't work for this other image!" so tell us in advance what your actual images look like, not this simplified synthetic image.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!