how to save matrix of class double in to an image?

20 vues (au cours des 30 derniers jours)
vaibhav Bansode
vaibhav Bansode le 1 Avr 2021
Commenté : Esther Nabadda le 17 Mar 2023
How can I save matrix of double type as an image without changing values? I wan to use these images in another program (.mat file is not helpfull)

Réponse acceptée

Reshma Nerella
Reshma Nerella le 4 Avr 2021
Hi,
You can use imwrite function to write data of specific types into a specified graphic file(various formats supported).
You can write your matrix data of double into a file and save it as an image.
For more information, refer to the documentation and examples of imwrite
  1 commentaire
Esther Nabadda
Esther Nabadda le 17 Mar 2023
imwrite will not save negative values though

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Images 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