How to change resolution of an image ?
조회 수: 9 (최근 30일)
이전 댓글 표시
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
답변 (1개)
Charu
2025년 1월 23일
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!