How to convert bytes into image again?

조회 수: 8 (최근 30일)
Sana Shaikh
Sana Shaikh 2013년 4월 19일
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??

채택된 답변

Walter Roberson
Walter Roberson 2013년 4월 19일
편집: Walter Roberson 2013년 4월 19일
reshape( typecast(ImageAsBytes, class(CoverImage)), size(CoverImage))

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by