Info

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

I tried to convert a 48*48 gray image into pixels values, now i tried to convert it back into gray image, but the converted image is not showing properly, it show the upper portion of face below and below portion above.

2 ビュー (過去 30 日間)
saeeda saher
saeeda saher 2017 年 11 月 5 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
my code is:
X = importdata('i2.txt');
d = reshape( uint8(X), 48, 48);
better_d = d([40:end,1:39],[25:end, 1:24]).';
image(better_d); colormap(gray(256));
  2 件のコメント
Geoff Hayes
Geoff Hayes 2017 年 11 月 5 日
saeeda - please comment on this line of code
better_d = d([40:end,1:39],[25:end, 1:24]).';
Why are you trying to do here?
Image Analyst
Image Analyst 2017 年 11 月 5 日
And attach i2.txt so we can try your code.

回答 (0 件)

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

Community Treasure Hunt

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

Start Hunting!

Translated by