Effacer les filtres
Effacer les filtres

I have text file which contains pixel values of an image i want to import this text file and read its data(which are pixel values of an image) and want to show it as an image. how to do this???

2 vues (au cours des 30 derniers jours)
the text file contains 48x48 pixel grayscale images of face.

Réponses (1)

KL
KL le 2 Nov 2017
maybe something like,
data = dlmread('filename.txt');
imagesc(data)
  1 commentaire
saeeda saher
saeeda saher le 3 Nov 2017
i tried this, but it shows a graph, my text file contains pixel values of an gray image which is a face, i want to get that face image y reading pixel values. i do not want image of a graph. kindly, help in this. thank you

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by