how to convert a grayscale image to a sequence of bytes
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
myetceteramail myetceteramail
el 28 de Dic. de 2016
Comentada: Walter Roberson
el 28 de Dic. de 2016
how do i convert the image into a sequence of bytes and then get the hash value using SHA3 256 bits.
0 comentarios
Respuestas (1)
Image Analyst
el 28 de Dic. de 2016
For the first question:
sequenceOfBytes = grayImage(:);
1 comentario
Walter Roberson
el 28 de Dic. de 2016
Or alternately, in case it is not already uint8:
sequenceOfBytes = typecast(grayImage, 'uint8');
Ver también
Categorías
Más información sobre Convert Image Type en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!