Learn R Programming

tfio (version 0.4.1)

tiff_dataset: Create a TIFFDataset.

Description

A TIFF Image File Dataset that reads the TIFF file.

Usage

tiff_dataset(filenames)

Arguments

filenames

A tf.string tensor containing one or more filenames.

Examples

Run this code
# NOT RUN {
dataset <- tiff_dataset(
    filenames = list("testdata/small.tiff")) %>%
  dataset_repeat(1)

sess <- tf$Session()
iterator <- make_iterator_one_shot(dataset)
next_batch <- iterator_get_next(iterator)

until_out_of_range({
  batch <- sess$run(next_batch)
  print(batch)
})
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab