Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

I extracted pixel values from image and saved them in text file, now i want to read that text file and save as an image, kindly guide me how can it be done

1 visualización (últimos 30 días)
img = imread('KR.AN1.83.tiff'); fid = fopen('YourImage.txt', 'w'); if fid == -1, error('Cannot open file'); end fprintf(fid, '%d %d %d ', size(img)); % Assuming it is an RGB image fprintf(fid, '%g ', img(:)); fclose(fid);

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by