Borrar filtros
Borrar filtros

how to convert demodulated binary bits into image

1 visualización (últimos 30 días)
ashok
ashok el 20 de Feb. de 2014
Comentada: ashok el 25 de Feb. de 2014
inverse of
x=reshape((dec2bin(typecast(a(:),'uint8'),8)-'0').',1,[]);

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 20 de Feb. de 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

Más respuestas (0)

Categorías

Más información sobre Convert Image Type en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by