how to convert a grayscale image to a sequence of bytes
4 ビュー (過去 30 日間)
古いコメントを表示
how do i convert the image into a sequence of bytes and then get the hash value using SHA3 256 bits.
0 件のコメント
回答 (1 件)
Image Analyst
2016 年 12 月 28 日
For the first question:
sequenceOfBytes = grayImage(:);
1 件のコメント
Walter Roberson
2016 年 12 月 28 日
Or alternately, in case it is not already uint8:
sequenceOfBytes = typecast(grayImage, 'uint8');
参考
カテゴリ
Help Center および File Exchange で Convert Image Type についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!