how to convert images to byte arrays & byte arrays back in images ?

Answers (1)

YourByteArray = typecast(YourImageArray, 'uint8') %convert to byte array
typecast(YourByteArray, class(YourImageArray)) %convert to original class

Categories

Find more on Convert Image Type in Help Center and File Exchange

Asked:

on 19 Feb 2013

Community Treasure Hunt

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

Start Hunting!