how to convert a grayscale image to a sequence of bytes

4 ビュー (過去 30 日間)
myetceteramail myetceteramail
myetceteramail myetceteramail 2016 年 12 月 28 日
コメント済み: Walter Roberson 2016 年 12 月 28 日
how do i convert the image into a sequence of bytes and then get the hash value using SHA3 256 bits.

回答 (1 件)

Image Analyst
Image Analyst 2016 年 12 月 28 日
For the first question:
sequenceOfBytes = grayImage(:);
  1 件のコメント
Walter Roberson
Walter Roberson 2016 年 12 月 28 日
Or alternately, in case it is not already uint8:
sequenceOfBytes = typecast(grayImage, 'uint8');

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by