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.

Antworten (1)

Sean de Wolski
Sean de Wolski am 27 Nov. 2013

0 Stimmen

'WriteMode' append doesn't appear to work for *.bmp files.
Try writing to a tif/gif/png file.

4 Kommentare

Raisa Qadir
Raisa Qadir am 27 Nov. 2013
Bearbeitet: Raisa Qadir am 27 Nov. 2013
Okay, i got it. But now i got errors for:
GIF: RGB output not supported.
TIFF and HDF: invalid Colormaps
is there some other function through which multiple images be appended and saved?
Sean de Wolski
Sean de Wolski am 27 Nov. 2013
What exact code are you using?
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 am 27 Nov. 2013
@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!

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Convert Image Type finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 27 Nov. 2013

Kommentiert:

am 27 Nov. 2013

Community Treasure Hunt

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

Start Hunting!

Translated by