imwrite Function in MATLAB

조회 수: 2 (최근 30일)
Raisa Qadir
Raisa Qadir 2013년 11월 27일
댓글: Raisa Qadir 2013년 11월 27일
I want to get multiple images from different axes and append them in a single image through imwrite function. The code is:
A=getimage(gca);
[File_Name, File_Path] = uiputfile('*.bmp', 'Save As');
imwrite(A,File_Name,'bmp','WriteMode','append');
I get this Error:
Error using ==> imagesci\private\writebmp Too many input arguments.
it works when i don't mention the writemode. but i want to append the next image so i wanted to use this parameter. Any help would be appreciable, thanks in advance.

답변 (1개)

Sean de Wolski
Sean de Wolski 2013년 11월 27일
'WriteMode' append doesn't appear to work for *.bmp files.
Try writing to a tif/gif/png file.
  댓글 수: 4
Image Analyst
Image Analyst 2013년 11월 27일
What if you stitch them together before writing
tallImage = [topImage; bottomImage]; % One atop the other.
wideImage = [leftImage, rightImage]; % side by side.
repeat as many times as needed to get all the images stitched.
Raisa Qadir
Raisa Qadir 2013년 11월 27일
@Sean
I was using the code i mentioned in the question. Changed a little.
@Image Analyst
Okay done with the stitching. Thank you so much!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by