Improving the image quality
Mostrar comentarios más antiguos
Hi guys
I have a problem with the image quality, when i save the result as .jpg, the quality is reduced, please help me, how can I solve it ?
4 comentarios
Ameer Hamza
el 8 de Oct. de 2020
Which function are you using? Are you saving an image or a figure() window?
Niloufar Baba adam
el 8 de Oct. de 2020
Walter Roberson
el 8 de Oct. de 2020
Editada: Walter Roberson
el 8 de Oct. de 2020
If you use print() instead of saveas(), then you can give a resolution by using a '-r' option. For example,
set(gcf,'PaperPositionMode','auto')
print('YourFileName.jpg','-djpeg','-r0') %corrected
which would print at screen resolution.
Niloufar Baba adam
el 8 de Oct. de 2020
Respuesta aceptada
Más respuestas (1)
Image Analyst
el 8 de Oct. de 2020
0 votos
Try using exportgraphics().
Save the file as a PNG format file instead of JPEG to avoid lossy compression artifacts.
Categorías
Más información sobre Printing and Saving 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!