I have noticed the Tensorflow
Python
package provides standard procedures for decoding jpeg
, png
and gif
images after reading files. For instance for png
:
import tensorflow as tf
filename_queue = tf.train.string_input_producer(['/Image.png']) # list of files to read
reader = tf.WholeFileReader()
key, value = reader.read(filename_queue)
decoded_image = tf.image.decode_png(value) # use png or jpg decoder based on your files.
However, the tiff
format decoder seems to be missing.
So what solutions exist for tiff
files? Surely, I could convert my input images to png
, but this doesn't seem to be a very smart solution.