USAGE: color_vector= name2rgb(color_name)
Return the rgb vector of a color name.
EXAMPLE:
name2rgb2({'r', 'blue', 'pp', 'y'})
ans = 1 0 0 0 0 1 NaN NaN NaN 1 1 0
HISTORY:
Version 1.0, 2006-07-19.
Version 1.1, 2006-07-22:
- Much more efficient (and elegant?) code, thanks to Urs (us) Schwarz!
Copyright (C) Peder Axensten <peder@axensten.se>
Cita come
Peder Axensten (2026). name2rgb (https://it.mathworks.com/matlabcentral/fileexchange/11750-name2rgb), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Creato con
R14SP1
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- Image Processing and Computer Vision > Image Processing Toolbox > Image Filtering and Enhancement > Image Arithmetic >
Scopri di più su Image Arithmetic in Help Center e MATLAB Answers
Tag
Riconoscimenti
Ispirato: Convert between RGB and Color Names
Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
| Versione | Pubblicato | Note della release | |
|---|---|---|---|
| 1.0.0.0 | - Much more efficient (and elegant?) code, thanks to Urs (us) Schwarz! |
