【发布时间】:2015-11-23 22:05:04
【问题描述】:
我有两张相同场景但类型不同的图像: image1:Type RGB ([400 400 3]) 和 image2:type 红外 ([400 400 1])。我正在通过连接 image1 和 image2 来获得 image3 ([400 400 4]) 来寻找图像。
im1=imread('rgbimage.jpg');
im2=imread('infraredimage.jpg');
im3=cat(4,im1,im2);
我在 matlab 中尝试使用 cat 函数,但出现此错误:
Error using cat
Dimensions of matrices being concatenated are not consistent.
如果有人可以帮助我,谢谢
【问题讨论】: