Convert Some Pixel from binary image

Dear all
If I have a binary image like the one below,
how i can remove the black color inside the white color?

 採用された回答

Walter Roberson
Walter Roberson 2019 年 6 月 2 日

0 投票

5 件のコメント

mohammed alany
mohammed alany 2019 年 6 月 2 日
thanks but i faced another problem,
how i can convert the image bellow
i need to remove just the small holesques2.jpg
Walter Roberson
Walter Roberson 2019 年 6 月 2 日
編集済み: Image Analyst 2019 年 6 月 2 日
Complement the image, then call bwareafilt, then complement again.
mohammed alany
mohammed alany 2019 年 6 月 2 日
still i cannot solve the problem,
Walter Roberson
Walter Roberson 2019 年 6 月 2 日
YourFilledImage = imcomplement(bwareafilt(imcomplement(im2bw(YourImage)),2));
mohammed alany
mohammed alany 2019 年 6 月 3 日
Many thanks for your help,

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeImages についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by