Dear all.
I have a directory of (PNG) files which come from tomography.
These files are slices of a stack which I would like to read into a volume with `imageio`.
Could someone give me a pointer on how to read the stack of images as volume?
Currently I'm doing it like so
````python
import glob
import matplotlib.pyplot as plt
# Get a list of all the relevant files
recfolder = '/data/sample/reconstructions'
reconstructions = glob.glob(os.path.join(recfolder, '*rec*.png'))
# This shows me one image, as expected
rec=imageio.imread(reconstructions[123])
plt.imshow(rec)
````
This is all fine and well, but now I'd like to read more images into a volume (for further processing)
It does work with a crude loop as below, but then I have a list of images, which is not what I would like.
````python
# This loads some images into a list, but not a volume
iteration = 100
vol = [None] * len(reconstructions[::iteration])
for c, rec in enumerate(reconstructions[::iteration]):
vol[c] = imageio.imread(rec)
````
I would expect this to read a subset of the images as volume, but get an error that imageion "could not find a format to read the specified file in mode 'v'"
````python
vol = imageio.volread(recfolder)
````
Also I would have expected that I can just put multiple filenames into `mimread` like below, but then I get an error about a non-understandable URI...
````python
vol = imageio.mimread(reconstructions[100:111])
````
I would greatly appreciate any pointers on how to read a bunch of images into a volume.
David Haberthür