forming bit-stream

조회 수: 3 (최근 30일)
FIR
FIR 2011년 12월 31일
I have taken a 26 image,processed,IWT,ebcot process,now i want to give 2 inputs to weighting weighting model,one is menn energy of co-efficients and other is VOI coordinates,please help

채택된 답변

Walter Roberson
Walter Roberson 2011년 12월 31일
I am having difficulty understanding your question as phrased. It is also not clear what bit-stream you are trying to form.
At this time could the question be simplified to "How do I convert numeric data to a bit stream?" If so then use dec2bin, possibly after having used typecast() if needed to re-represent floating point numbers as unsigned integers. dec2bin() will output a string of characters, each '0' or '1'. If you need decimal 0 and decimal 1, then you can subtract '0' from the result, as in
dec2bin(314159) - '0'
  댓글 수: 8
FIR
FIR 2012년 1월 2일
I=imread('lena.bmp')
K=dec2bin(I);
[r c]=size(K)
J=K-0;
W=zeros(r,c);
J=K-W
i get numeric values
Walter Roberson
Walter Roberson 2012년 1월 2일
K = dec2bin(I) - '0';
just like I wrote. The character, not the number.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Import, Export, and Conversion에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by