how to convert a grayscale image to a sequence of bytes

1 Ansicht (letzte 30 Tage)
myetceteramail myetceteramail
Kommentiert: Walter Roberson am 28 Dez. 2016
how do i convert the image into a sequence of bytes and then get the hash value using SHA3 256 bits.

Antworten (1)

Image Analyst
Image Analyst am 28 Dez. 2016
For the first question:
sequenceOfBytes = grayImage(:);
  1 Kommentar
Walter Roberson
Walter Roberson am 28 Dez. 2016
Or alternately, in case it is not already uint8:
sequenceOfBytes = typecast(grayImage, 'uint8');

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Convert Image Type finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by