Or more to the point, after retrieving all of the images from a dataset with the code below, how do I save them in their original format (or OME.tiff)?
Many thanks!
j
- Code: Select all
import omero
from omero.gateway import BlitzGateway
import os
import getpass
USER = os.environ['USER']
PASS = getpass.getpass("Enter Password:")
HOST = os.environ['HOST']
conn = BlitzGateway(USER, PASS, host=HOST, port=4064)
conn.connect()
conn.getSession().setTimeToIdle(rlong(60*60*1000))
DATASET = 16822
dataset = conn.getObject('Dataset', DATASET)
# make a dict of name: image
images = {}
for image in dataset.listChildren():
filename = image.getName()
print filename