Filter löschen
Filter löschen

how to convert demodulated binary bits into image

1 Ansicht (letzte 30 Tage)
ashok
ashok am 20 Feb. 2014
Kommentiert: ashok am 25 Feb. 2014
inverse of
x=reshape((dec2bin(typecast(a(:),'uint8'),8)-'0').',1,[]);

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 20 Feb. 2014
s=num2cell(reshape(x,8,[])',2)
b=cellfun(@(x) bin2dec(strrep(num2str(x),' ','')),s);
out=reshape(b,n,m); % your original image is nxm

Weitere Antworten (0)

Kategorien

Mehr zu Convert Image Type finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by