How can I fill everything below the white thing line in this image?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
In the image I have attached, how can I fill the entire area below the thin white line plotted? Thank you!
0 Commenti
Risposta accettata
Matt J
il 17 Giu 2020
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 Commento
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Image Filtering and Enhancement in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!