Skip to content

Instantly share code, notes, and snippets.

@miura
Created August 5, 2013 07:28
Show Gist options
  • Save miura/6154060 to your computer and use it in GitHub Desktop.
Save miura/6154060 to your computer and use it in GitHub Desktop.
srcDir = DirectoryChooser("Choose!").getDirectory()
IJ.log("directory: "+srcDir)
for root, directories, filenames in os.walk(srcDir):
for filename in filenames:
if filename.endswith(".tif"):
path = os.path.join(root, filename)
IJ.log(path)
imp = IJ.openImage(path)
imp.show()
imp.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment