Azzera filtri
Azzera filtri

how to write binary image into text file

1 visualizzazione (ultimi 30 giorni)
hello, i want to write binary image into a text file. thank u

Risposta accettata

David Sanchez
David Sanchez il 28 Nov 2013
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 Commenti
Walter Roberson
Walter Roberson il 4 Dic 2013
Really that should go into a different Question.
SUMEET
SUMEET il 4 Giu 2014
search on matlab central with link: Edge detection using sobel operator

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by