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!