フィルターのクリア

In a binary image, can I selectively remove one of the blobs interactively?

2 ビュー (過去 30 日間)
Caleb
Caleb 2012 年 11 月 8 日
As the title states, I have a binary image with a number of blobs. Can I interactively remove one or more of the blobs without too much trouble?
As in, I don't want program a code to remove, say, the 5th blob. I want to open up a figure, click on a blob, and delete it.

採用された回答

Image Analyst
Image Analyst 2012 年 11 月 8 日
Label the blobs with bwlabel. Then call ginput() or impixel() and have the user click on a blob. Get the value of the labeled image at that location. Then use ismember() to erase that blob. Relabel if you want to reflect the fewer number of blobs.

その他の回答 (1 件)

Sean de Wolski
Sean de Wolski 2012 年 11 月 8 日
You're in luck (!) - I wrote it here:

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by