How to form bytes ?

5 visualizaciones (últimos 30 días)
Sana Shaikh
Sana Shaikh el 20 de Abr. de 2013
To extract hidden data frm LSBs of image I have collected dataa as bits in an array array size is 486864x1 (It consists of 486864 bits that I retrieved) Now how to form bytes of this data? each 8 bits in this array is to represented as a byte How can I do ths????

Respuesta aceptada

Walter Roberson
Walter Roberson el 20 de Abr. de 2013
uint8( D(1:8:end) * 128 + D(2,8,end) * 64 + D(3,8,end) * 32 (etc) )

Más respuestas (0)

Categorías

Más información sobre Encryption / Cryptography en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by