how to write binary image into text file

1 visualización (últimos 30 días)
megha
megha el 28 de Nov. de 2013
Comentada: SUMEET el 4 de Jun. de 2014
hello, i want to write binary image into a text file. thank u

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by