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

1 回表示 (過去 30 日間)
saeeda saher
saeeda saher 2017 年 11 月 2 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by