Effacer les filtres
Effacer les filtres

how to write binary image into text file

1 vue (au cours des 30 derniers jours)
megha
megha le 28 Nov 2013
Commenté : SUMEET le 4 Juin 2014
hello, i want to write binary image into a text file. thank u
  1 commentaire
Walter Roberson
Walter Roberson le 28 Nov 2013
What format do you want it to show up in ?

Connectez-vous pour commenter.

Réponse acceptée

David Sanchez
David Sanchez le 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 commentaires
Walter Roberson
Walter Roberson le 4 Déc 2013
Really that should go into a different Question.
SUMEET
SUMEET le 4 Juin 2014
search on matlab central with link: Edge detection using sobel operator

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by