You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to read a sequence of files in a folder (in this case, "data"),
params = {
'image_path': './data/',
}
"merge_tiffs" seems to find files in the root folder, instead of the 'image_path'. img = util.merge_tiffs(params['image_path'], './autofluor.tiff')
/root/.local/lib/python2.7/site-packages/ndreg-1.0.0-py2.7.egg/ndreg/util.pyc in merge_tiffs(path_to_tiffs, filename)
171
172 # now lets go through them and make a tif
--> 173 combined_tiff = sitk.ReadImage(files)
174
175 # now save the tiff
/usr/local/lib/python2.7/dist-packages/SimpleITK/SimpleITK.pyc in ReadImage(*args)
8330
8331 """
-> 8332 return _SimpleITK.ReadImage(*args)
8333 class HashImageFilter(ProcessObject):
8334 """
RuntimeError: Exception thrown in SimpleITK ReadImage: /tmp/SimpleITK/Code/IO/src/sitkImageReaderBase.cxx:74:
sitk::ERROR: The file "181023_10-22-52_GM0322_C00_z0000.ome.tif" does not exist.
I can read this tiff file if I set the 'image_path' as './data/181023_10-22-52_GM0322_C00_z0000.ome.tif' and run img = util.imgRead(params['image_path']) or img = sitk.imgRead(params['image_path']).
When I try to read a sequence of files in a folder (in this case, "data"),
"merge_tiffs" seems to find files in the root folder, instead of the 'image_path'.
img = util.merge_tiffs(params['image_path'], './autofluor.tiff')I can read this tiff file if I set the 'image_path' as './data/181023_10-22-52_GM0322_C00_z0000.ome.tif' and run
img = util.imgRead(params['image_path'])orimg = sitk.imgRead(params['image_path']).