skimage-tutorials icon indicating copy to clipboard operation
skimage-tutorials copied to clipboard

imagecollection

Open baermatthias opened this issue 3 years ago • 2 comments

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

baermatthias avatar Jan 09 '22 17:01 baermatthias

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')

stefanv avatar Jan 09 '22 18:01 stefanv

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.

baermatthias avatar Jan 10 '22 16:01 baermatthias