%src为rgb图像,saturation为调节的饱和度值,调节范围为【-100,100】
function Image_new = SaturationAdjustment(src,saturation)
Image=src;
Image=double(Image);
R=Image(:,:,1);
G=Image(:,:,2);
B=Image(:,:,3);
[row, col] = size(R);
R_new=R;
G_new=G;
B_new=B;
%%%% Increment, 饱和度调整增量(-100,100)photoshop的范围
Increment=saturation;
%换算成调整比率
Increment
matlab实现调整图片的饱和度
最新推荐文章于 2024-04-19 23:53:41 发布