# Autoencoder on spectral image ASCII data file

I am discovering Autoencoder CNN, I took a look around on tutorials, I see lot's of examples with images as input. I was wondering if it is possible to use files whose pixels are represented by Ascii codes in .txt format ?

For example, a .txt file as this structure:

0 0 1.875223e+01
1 0 1.875223e+01
2 0 2.637685e+01
...


If anyone as an example with an autoencoder with ASCII file as input, I will appreciate. I am still in the reflexion if it is better to use ASCII files as input or directly image files. what do you think?