Borrar filtros
Borrar filtros

Saving Matlab figure(Imagesc) to JPG without White borders

25 visualizaciones (últimos 30 días)
Sunny
Sunny el 20 de Dic. de 2018
Comentada: Image Analyst el 16 de Mzo. de 2021
Hi,
I am using imagesc to plot color maps in matlab. While saving as JPG and Figuire it gives white space around the image. Is it possible to save without white space?
imagesc(Subject_Assist_Quest);
set(gca,'YDir','normal')
axis off
Capture.jpg
  3 comentarios
Elinor Kath
Elinor Kath el 16 de Mzo. de 2021
When I try this I get: "Warning: Background transparency is not supported; using white instead. " So far I haven't found a workaround.
Image Analyst
Image Analyst el 16 de Mzo. de 2021
You can ignore the warning. Is white not OK? Why are you having transparent pixels anyway?

Iniciar sesión para comentar.

Respuesta aceptada

Mark Sherstan
Mark Sherstan el 20 de Dic. de 2018
Look at this file

Más respuestas (1)

Image Analyst
Image Analyst el 20 de Dic. de 2018
Yes, use imwrite:
imwrite(Subject_Assist_Quest, filename);
Do not save image analysis images as JPG or you'll be sorry. Use PNG.
  1 comentario
Sunny
Sunny el 20 de Dic. de 2018
Editada: Sunny el 20 de Dic. de 2018
Thanks got your point. I will save in PNG.

Iniciar sesión para comentar.

Etiquetas

Productos


Versión

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by