求助

来源:互联网 发布:led散热模拟软件 编辑:程序博客网 时间:2024/05/29 15:42

rgb_image1=imread('D:/light.tif');
rgb_image1=im2double(rgb_image1);
 R=rgb_image1(:,:,1);
G=rgb_image1(:,:,2);
B=rgb_image1(:,:,3);
I=(R+G+B);
H=(G-B)/(3*(I-B));
S=1-B/I;
rgb_image2=imread('D:/peizhunhou.tif');
rgb_image1=im2double(rgb_image1);
rgb_image2=im2double(rgb_image2);
I=rgb_image2;
R=I*(1+2*S-3*H*S);
G=I*(1-S+3*H*S);
B=I*(1-S);
rgb_image=cat(3,R,G,B);
subplot(1,3,1);image(rgb_image1);
subplot(1,3,2);image(rgb_image2);
subplot(1,3,3);image(rgb_image);

 

??? Error using ==> mtimes
Inputs must be 2-D, or at least one input must be scalar.

原创粉丝点击