Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

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.

1 visualización (últimos 30 días)
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 comentarios
Geoff Hayes
Geoff Hayes el 5 de Nov. de 2017
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?

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by