How to show different colours as different regions (by assigning different grey level values to each region corresponding to a particular colour)
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Risposta accettata
Walter Roberson
il 9 Mag 2017
Use a labeled array and ind2rgb()
2 Commenti
Walter Roberson
il 9 Mag 2017
Start with (for example) http://blogs.mathworks.com/steve/2006/11/17/labeling-labeled-objects/ . Once you have the L matrix, pass it to ind2rgb() along with a colormap; see https://www.mathworks.com/help/matlab/ref/ind2rgb.html
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Colormaps 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!