Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from ij import IJ, ImagePlus
- from java.lang import Runtime, Runnable
- import os
- filepaths = []
- for folder, subs, files in os.walk('location/of/files/'):
- for filename in files:
- #the next part stops it appending DS files
- if not filename.startswith('.'):
- filepaths.append(os.path.abspath(os.path.join(folder, filename,)))
- for i in filepaths:
- IJ.open(i);
- IJ.close();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement