How can I save the output figure into an image file?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Gulfam Saju
el 14 de Mzo. de 2022
Comentada: Gulfam Saju
el 15 de Mzo. de 2022
recon_img = senserecon(aliased_img, sen_map,reduc, fi_matrix);
figure;imshow(abs(recon_img),[0 0.000005]);title('sense recon');
After this line of code the output image shows. Now, I want to export this output figure into another image file.
Respuesta aceptada
yanqi liu
el 15 de Mzo. de 2022
recon_img = senserecon(aliased_img, sen_map,reduc, fi_matrix);
figure;imshow(abs(recon_img),[0 0.000005]);title('sense recon');
print(gcf,'-dpng','-r200','sense_recon')
Más respuestas (1)
Scott MacKenzie
el 14 de Mzo. de 2022
Editada: Scott MacKenzie
el 14 de Mzo. de 2022
A easy way is to use exportgraphics, introduced in R2020a:
f = figure;
imshow(...);
exportgraphics(f, 'filename.jpg'); % or .png or whatever format you want (see documentation)
0 comentarios
Ver también
Categorías
Más información sobre Printing and Saving en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!