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

8 vues (au cours des 30 derniers jours)
Abul Hasan
Abul Hasan le 16 Juin 2022
Commenté : Abul Hasan le 21 Juin 2022
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

Réponses (1)

Image Analyst
Image Analyst le 16 Juin 2022
Modifié(e) : Image Analyst le 16 Juin 2022
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 commentaires
Image Analyst
Image Analyst le 20 Juin 2022
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 le 21 Juin 2022
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..

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by