combining four .png images

24 ビュー (過去 30 日間)
Joydeb Saha
Joydeb Saha 2020 年 6 月 24 日
コメント済み: Joydeb Saha 2020 年 6 月 24 日
clear
clc
im2 = imread('01.05.19.png');
im1= imread('1may.png');
im4=imread('1MayCTT.png');
im3=imread('denstrack_01May.png');
multi = cat(3,im1,im2,im3,im4);
figure
montage(multi);
or
clear
clc
im2 = imread('01.05.19.png');
im1= imread('1may.png');
im4=imread('1MayCTT.png');
im3=imread('denstrack_01May.png');
% multi = cat(3,im1,im2,im3,im4);
% figure
% montage(multi);
montage({im1,im2,im3,im4});
I want to join/combine these four png images but the codes are not working in R2017a
  2 件のコメント
KSSV
KSSV 2020 年 6 月 24 日
the codes are not working..
why the codes are not working? What problem you sre getting?
Joydeb Saha
Joydeb Saha 2020 年 6 月 24 日
For the first code I am getting this error
Error using cat
Dimensions of matrices being concatenated are not consistent.
For the second code I am getting this error
Error using images.internal.getImageFromFile (line 7)
The specified filename is not a character vector.
Error in montage>getImagesFromFiles (line 355)
[img, map] = images.internal.getImageFromFile(fileNames{1});
Error in montage>parse_inputs (line 241)
[I,cmap] = getImagesFromFiles(varargin{1});
Error in montage (line 114)
[I,cmap,mSize,indices,displayRange,parent] = parse_inputs(varargin{:});

サインインしてコメントする。

回答 (1 件)

Kanika Gupta
Kanika Gupta 2020 年 6 月 24 日
If you are looking of fusing multiple images, there is one similar question answered here https://in.mathworks.com/matlabcentral/answers/401260-combine-fuse-two-images-into-one.
For combining images , refer to this link https://in.mathworks.com/help/matlab/ref/imtile.html
Try checking out similar questions here

カテゴリ

Help Center および File ExchangeImages についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by