how to convert a grayscale image to a sequence of bytes
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
myetceteramail myetceteramail
am 28 Dez. 2016
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.
0 Kommentare
Antworten (1)
Image Analyst
am 28 Dez. 2016
For the first question:
sequenceOfBytes = grayImage(:);
1 Kommentar
Walter Roberson
am 28 Dez. 2016
Or alternately, in case it is not already uint8:
sequenceOfBytes = typecast(grayImage, 'uint8');
Siehe auch
Kategorien
Mehr zu Convert Image Type finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!