필터 지우기
필터 지우기

How to convert audio, video & image in binary outputs and vice versa (Series of 1's & 0's)?

조회 수: 4 (최근 30일)
Hey,
I am implementing improved AES algorithm on Mathlab. In the begining i want to take input as image , audio , video or text file. But then I need to convert the image in binary format meaning 1's and 0's and same for sound and video file in the binary form....that is series of 1's and 0's. Can you convert video , sound and image file in series of 1's and 0's and store it in an array. Then only I will be able to perform encryption. I don't want the RGB values for the image. Just convert it in binary or analog format. Plz...also tell me to reconvert it back from analog form to image, sound or video....thanx in advance.
  댓글 수: 1
Walter Roberson
Walter Roberson 2013년 1월 6일
What is an "improved AES algorithm" ? If you do not follow the official algorithm, it would not be AES.

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2013년 1월 6일
fid = fopen('InputFileName');
bits = fread(fid, inf, '*ubit1', 'b');
fclose(fid);
Caution: this will not be able to access resource forks (OS-X) or alternate streams (MS Windows)

추가 답변 (1개)

Rick Rosson
Rick Rosson 2013년 1월 6일
편집: Rick Rosson 2013년 1월 6일
Please try:
>> docsearch('binary')
MATLAB:
>> doc dec2bin
>> doc bin2dec
Data Acquisition Toolbox:
>> doc dec2binvec
>> doc binvec2dec
Communications System Toolbox:
>> doc de2bi
>> doc bi2de
Image Proccessing Toolbox:
>> doc im2bw

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by