Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

I converted black and white image to bits and bits back into image. But the image totally different than original.I'm not getting any error. Please help me.

1 vue (au cours des 30 derniers jours)
Image='C:\Users\Rasanjalee\Desktop\Network Coding Simulator\3rdattempt\1'
B=dec2bin(Image);
C= reshape(B',1,numel(B));
D=reshape(C,size(B,2),size(B,1));
Imageout=reshape(bin2dec(D'),size(Image));
baseFileName = 'new flower1.jpg';
fullFileName = fullfile('C:\Users\Rasanjalee\Desktop\Network Coding Simulator\3rdattempt\', baseFileName);
%imwrite(rgbImage, fullFileName);
imwrite(Imageout, fullFileName);

Réponses (0)

Cette question est clôturée.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by