Info
This question is closed. Reopen it to edit or answer.
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.
2 views (last 30 days)
Show older comments
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);
0 Comments
Answers (0)
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!