フィルターのクリア

how to write binary image into text file

1 回表示 (過去 30 日間)
megha
megha 2013 年 11 月 28 日
コメント済み: SUMEET 2014 年 6 月 4 日
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 日
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 件のコメント
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 件)

Community Treasure Hunt

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

Start Hunting!

Translated by