How to change resolution of an image ?

What is the command/keyword for changing resolution(ppi) of image in matlab? How we can use that command? Please kindly give an example

3 Kommentare

David Hill
David Hill am 28 Apr. 2020
You might look at the documentation in matlab for: Singl Image Super-Resolution Using Deep Learning. It provides examples.
Image Analyst
Image Analyst am 28 Apr. 2020
You mean like if you printed it to paper or a PDF?
ABTJ
ABTJ am 29 Apr. 2020
please check the updated question, I have edited, it was pixels per inch , my intention wasn't dpi

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Charu
Charu am 23 Jan. 2025

0 Stimmen

To change the resolution of an image in MATLAB, you can specify the pixels per inch (PPI) when saving the image in formats that support this feature, such as TIFF. This can be done using the imwrite function with the Resolution parameter provided by the Image Processing Toolbox. For example, in MATLAB R2024b, you can set the resolution as follows:
imwrite(imageData, 'outputimage.tiff', 'Resolution', [300, 300]);
Refer to this link of official documentation for further information.

Kategorien

Mehr zu Images finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2015a

Gefragt:

am 28 Apr. 2020

Beantwortet:

am 23 Jan. 2025

Community Treasure Hunt

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

Start Hunting!

Translated by