필터 지우기
필터 지우기

how to convert a grayscale image to a sequence of bytes

조회 수: 1 (최근 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 CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by