how to write binary image into text file

hello, i want to write binary image into a text file. thank u

1 件のコメント

Walter Roberson
Walter Roberson 2013 年 11 月 28 日
What format do you want it to show up in ?

サインインしてコメントする。

 採用された回答

David Sanchez
David Sanchez 2013 年 11 月 28 日

0 投票

M = your_matrix_with_image_data;
fid = fopen('your_binary_im.txt', 'w+');
for i=1:size(M, 1)
fprintf(fid, '%f ', M(i,:));
fprintf(fid, '\n');
end
fclose(fid);

3 件のコメント

megha
megha 2013 年 12 月 4 日
thank you sir can i ask one more question related to edge detection using sobel operator. I am doing my project related to this subject on FPGA so i want to see that what will be the result in matlab can u tell me how to do edge detection using sobel oerator in matlab. Thank you
Walter Roberson
Walter Roberson 2013 年 12 月 4 日
Really that should go into a different Question.
SUMEET
SUMEET 2014 年 6 月 4 日
search on matlab central with link: Edge detection using sobel operator

サインインしてコメントする。

その他の回答 (0 件)

質問済み:

2013 年 11 月 28 日

コメント済み:

2014 年 6 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by