How to convert bytes into image again?

7 vues (au cours des 30 derniers jours)
Sana Shaikh
Sana Shaikh le 19 Avr 2013
I have an image of 294x558x3 size
I read it byte by byte by using
ImageAsBytes = typecast(CoverImage(:), 'uint8')
to perform some specific operation but now after peforming
how can I covert it back to image format??

Réponse acceptée

Walter Roberson
Walter Roberson le 19 Avr 2013
Modifié(e) : Walter Roberson le 19 Avr 2013
reshape( typecast(ImageAsBytes, class(CoverImage)), size(CoverImage))
  1 commentaire
Sana Shaikh
Sana Shaikh le 19 Avr 2013
Thank you Sir!!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Convert Image Type 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