skimage-tutorials
skimage-tutorials copied to clipboard
imagecollection
The provided command ic = io.ImageCollection('..\images*.png:..\images*.jpg') is not working in python 3.9
although an append of files is working by seprately reading two ic individually, enumerating the appended ic wont show the jpg files.
ic1 = io.ImageCollection('../images/*.png')
ic2 = io.ImageCollection('../images/*.jpg')
#append ic1 files to ic2
for images in ic1.files:
ic2.files.append(images)
print('Type:', type(ic2))
ic2.files
In the first command, the slashes are backslashes instead of forward slashes. Can you please confirm that you tried:
c = io.ImageCollection('../images*.png:../images*.jpg')
Hi stefanv,
I tried both slash types. In both ways I get an empty object. Only if I separately execute it, I get a list of images. However, appending does work although it won't plot all files. Only one kind of image type.
I use anaconda in the current release. Fresh installation on 09th January 2021. Windows 10 environment.