开发者

coloring in imagesc

开发者 https://www.devze.com 2023-01-12 15:08 出处:网络
Can the functions A, B, and C be different colors? Z = A +开发者_JAVA百科 B + C; imagesc(Z) colormap(gray)

Can the functions A, B, and C be different colors?

Z = A +开发者_JAVA百科 B + C;
imagesc(Z)
colormap(gray)


Not if you add them like that, because that makes it only one function.


If you have the image processing toolbox, you can use IMSHOW to display A,B, and C as red, green and blue, respectively:

Z = cat(3,A,B,C);
imshow(Z)

You may need to scale A,B, and C so that their values go from 0 to 1, though.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号