通过对三个通道定义不同的运算,使图像的色调改变,进而生成不同色彩的图像。


clc;
clear all;

Image=imread('4.jpg');
Image=double(Image);

R=Image(:,:,1);
G=Image(:,:,2);
B=Image(:,:,3);

R_new=R;
G_new=G;
B_new=B;

R_new=(G-B).^2/128;
G_new=(R-B).^2/128;
B_new=(R-G).^2/128;

Image_new(:,:,1)=R_new;
Image_new(:,:,2)=G_new;
Image_new(:,:,3)=B_new;

imshow(Image_new/255);


原图 

PS 色调——颜色运算


效果图

PS 色调——颜色运算


相关文章:

  • 2022-12-23
  • 2021-07-21
  • 2021-11-13
  • 2021-06-12
  • 2022-02-28
  • 2022-12-23
  • 2021-09-15
猜你喜欢
  • 2021-12-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-15
  • 2022-02-26
  • 2022-01-18
相关资源
相似解决方案