Too many arguments error when converting .tiff to .bmp
Mostrar comentarios más antiguos
I am trying to convert .tiff image to .bmp using the code as below
A=imread('ref.tif'); B=imwrite(A,'ref.bmp');
However, it failed and show "too many arguments".
Any recommendation on solving this? Thank you.
3 comentarios
Vanessa Phung
el 15 de Nov. de 2017
Vanessa Phung
el 15 de Nov. de 2017
Respuestas (2)
M
el 15 de Nov. de 2017
I don't think that imwrite returns an output. It should be used as
imwrite(A,map,filename)
1 comentario
Vanessa Phung
el 15 de Nov. de 2017
mounika
el 15 de Nov. de 2017
Try this:
t = Tiff('ref.tiff','r');
imageData = read(t);
imwrite(imageData,'ref.bmp');
1 comentario
Vanessa Phung
el 15 de Nov. de 2017
Categorías
Más información sobre Convert Image Type en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!