Effacer les filtres
Effacer les filtres

reading pixels from an image

1 vue (au cours des 30 derniers jours)
Mohanned Al Gharawi
Mohanned Al Gharawi le 4 Mai 2018
I saved several images with extension fig, I need to read pixels in them, how can I do that?
  2 commentaires
KSSV
KSSV le 4 Mai 2018
What images? .fig is a matlab figure...you have data in hand you plotted them and saved as .fig. What exactly you want to do?
Mohanned Al Gharawi
Mohanned Al Gharawi le 4 Mai 2018
Thanks for replaying, I have a code which creates several images. I could read the pixels from them before I saved them, but when I saved them with extension fig and jpg I couldn't read the pixels from them. Is there any way that I could read the pixels from the these images? I uploaded two images. Thanks

Connectez-vous pour commenter.

Réponse acceptée

Image Analyst
Image Analyst le 4 Mai 2018
Don't save them as .fig files. Use imwrite() to save them as .PNG files. Otherwise you'll have to read in the figures with openfig() and then use getimage(), which is not as direct, plus .fig files are not readable by standard functions such as Photoshop or whatever.
  1 commentaire
Mohanned Al Gharawi
Mohanned Al Gharawi le 4 Mai 2018
Thank you so much it worked.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Read, Write, and Modify Image 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!

Translated by