フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

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 ビュー (過去 30 日間)
Sandunika Rasanjalee
Sandunika Rasanjalee 2019 年 7 月 3 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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 件)

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by