필터 지우기
필터 지우기

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