Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
display clear JPEG image from hex characters in matlab R2018a
조회 수: 4 (최근 30일)
이전 댓글 표시
fid=fopen('hexdata.txt','r');
img=fscanf(fid,'%2x',[256 120]);
fclose(fid);
resizedImage=imresize(img,[256 256]);
resizedImage=resizedImage';
figure,imshow(resizedImage,[]);
댓글 수: 2
Guillaume
2018년 6월 29일
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
2018년 6월 29일
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.
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!