GENERATE COLOR GRADIENT FOR AN IMAGE
Versione 1.0.0 (1,55 KB) da
harjeet singh
this codes demonstrates how we can generate an image having linear color gradient, it uses two color to generates color gradient image,
This code depends upon the linear change in color gradient, one is the start color and another is the destination color.
[final_image]= img_grd(l,w,fc,sc)
l = length of image
w = width of image
fc = RGB start color
sc = RGB end color
Example:
final_image = img_grd(500,200,[104 201 80],[95 64 217]);
Billtech Labs,
http://www.billtechcoding.com
http://www.billtechcoding.com/cource.php?id=28
Cita come
harjeet singh (2026). GENERATE COLOR GRADIENT FOR AN IMAGE (https://it.mathworks.com/matlabcentral/fileexchange/71749-generate-color-gradient-for-an-image), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Creato con
R2018b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- MATLAB > Graphics > Images > Modify Image Colors >
Scopri di più su Modify Image Colors in Help Center e MATLAB Answers
Tag
Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
| Versione | Pubblicato | Note della release | |
|---|---|---|---|
| 1.0.0 |