GENERATE COLOR GRADIENT FOR AN IMAGE
版本 1.0.0 (1.6 KB) 作者:
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
引用格式
harjeet singh (2024). GENERATE COLOR GRADIENT FOR AN IMAGE (https://www.mathworks.com/matlabcentral/fileexchange/71749-generate-color-gradient-for-an-image), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
创建方式
R2018b
兼容任何版本
平台兼容性
Windows macOS Linux类别
- MATLAB > Graphics > Images > Modify Image Colors >
在 Help Center 和 MATLAB Answers 中查找有关 Modify Image Colors 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0 |