How to mask a binary image with a mask?
5 ビュー (過去 30 日間)
古いコメントを表示
Friends I have a small problem with a image and a mask , I need to make a mask in a binary image how can do this?
0 件のコメント
回答 (1 件)
Image Analyst
2015 年 6 月 28 日
Pass your mask into your binary image. If you want to blacken outside the mask, one way to do it is:
binaryImage(~mask) = false;
Another way is
binaryImage = binaryImage & mask;
If you don't know how to create a mask, you can use thresholding, or draw by hand like in my attached demos.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Author Block Masks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!