Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
I extracted pixel values from image and saved them in text file, now i want to read that text file and save as an image, kindly guide me how can it be done
조회 수: 2 (최근 30일)
이전 댓글 표시
img = imread('KR.AN1.83.tiff'); fid = fopen('YourImage.txt', 'w'); if fid == -1, error('Cannot open file'); end fprintf(fid, '%d %d %d ', size(img)); % Assuming it is an RGB image fprintf(fid, '%g ', img(:)); fclose(fid);
댓글 수: 0
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!