i want to alter dpi
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
how can i alter dpi of an image and set it to 300.
0 commentaires
Réponse acceptée
Sean de Wolski
le 25 Fév 2013
In print? Specify the rnumber
print(gcf,'-r300')
2 commentaires
Sean de Wolski
le 25 Fév 2013
Yes. You save a figure as an image with the print command:
figure;
surf(peaks);
print(gcf,'-r300','-dpng','test.png')
And for more info:
doc print
Plus de réponses (1)
Walter Roberson
le 25 Fév 2013
dpi is not an physical property of images, and cannot be set by imwrite() or print(). In some kinds of images, dpi can be set in auxillary information headers, such as EXIF headers. Unfortunately MATLAB does not have any routines that can write those headers. See http://www.mathworks.com/matlabcentral/newsreader/view_thread/298784
0 commentaires
Voir également
Catégories
En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!