How to add image information such as x and y resolution?

조회 수: 8 (최근 30일)
Abul Hasan
Abul Hasan 2022년 6월 16일
댓글: Abul Hasan 2022년 6월 21일
Hi,
I found some images from Github(with code), when I see image information of that image in MatLab(using 'imageinfo') it is showing height and width like other images which I have respectively, but in addition to that there are values for X resolution and Y resolution(like image info(dog1.png)), so I want to know how to add this resolution values into my images(image info(newImage4.png))
Thank you

답변 (1개)

Image Analyst
Image Analyst 2022년 6월 16일
편집: Image Analyst 2022년 6월 16일
See this:
run_exiftool
version 1.1.0.0 (50.5 KB) by Peter Burns
Read and write full Exif metadata from image files. A Matlab front end for ExifTool, by Phil Harvey.
Example of my code that uses it is attached.
  댓글 수: 3
Image Analyst
Image Analyst 2022년 6월 20일
Why can't you run it? Did you download the File Exchange item fro Peter Burns and the tool from Phil Harvey? Probably not. What error message did you get? Something related to you not having downloaded those software packages?
You could maybe write something yourself but at this time there is no built-in options for imwrite() to allow you to write EXIF and/or IPTC metadata tags.
Abul Hasan
Abul Hasan 2022년 6월 21일
I have downloaded the file and the code is running and giving me the figure but the image is not able to save, as it's showing instal the exe file again,
I tried to save figure from figure window but, its saving with x and y axis, and I have many images to do this process..

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Display Point Clouds에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by