Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
display clear JPEG image from hex characters in matlab R2018a
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
fid=fopen('hexdata.txt','r');
img=fscanf(fid,'%2x',[256 120]);
fclose(fid);
resizedImage=imresize(img,[256 256]);
resizedImage=resizedImage';
figure,imshow(resizedImage,[]);
2 comentarios
Guillaume
el 29 de Jun. de 2018
This appears to be a continuation of convert-hex-data-to-viewable-image-using-matlab-r2018a, in which I think you say you've resolved the problem.
Therefore, it's not clear what your question is here.
Guillaume
el 29 de Jun. de 2018
Also, there are 22504 hexadecimal characters = 11252 bytes in your text file. Neither 256, nor 120 are a divisor of 11252, so it's not clear why you're attempting to read a 256x120 array.
Respuestas (0)
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!