How can I fill everything below the white thing line in this image?

1 回表示 (過去 30 日間)
Love Matlab
Love Matlab 2020 年 6 月 17 日
コメント済み: Image Analyst 2020 年 6 月 18 日
In the image I have attached, how can I fill the entire area below the thin white line plotted? Thank you!

採用された回答

Matt J
Matt J 2020 年 6 月 17 日
By adapting the following smaller example,
A =
1 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0
0 0 1 0 0 0 0 0
0 0 0 1 0 0 0 0
0 0 0 0 1 0 0 0
0 0 0 0 0 1 1 1
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
>> B=cummax(A,1)
B =
1 0 0 0 0 0 0 0
1 1 0 0 0 0 0 0
1 1 1 0 0 0 0 0
1 1 1 1 0 0 0 0
1 1 1 1 1 0 0 0
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
  1 件のコメント
Image Analyst
Image Analyst 2020 年 6 月 18 日
I've never heard of that one. Now I know. Thanks.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Filtering and Enhancement についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by