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,
78.0 次下载
更新时间 2019/6/4

查看许可证

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
类别
Help CenterMATLAB 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