acia.segm.omero.utils#
Utils for OMERO segmenation data
- acia.segm.omero.utils.getImage(conn, imageId)[source]#
- Get omero image by id
Note: only images in your current group are accessible
- Parameters:
conn (BlitzGateway) – current omero connection
imageId (int) – image id
- Returns:
ImageWrapper – image object
- Return type:
omero.gateway.ImageWrapper
- acia.segm.omero.utils.getDataset(conn, datasetId)[source]#
- Get omero dataset by id
Note: only datasets in your current group are accessible
- Parameters:
conn (BlitzGateway) – active omero connection
datasetId (int) – dataset id
- Returns:
DatasetWrapper – dataset object
- Return type:
omero.gateway.DatasetWrapper
- acia.segm.omero.utils.getProject(conn, projectId)[source]#
- Get omero project by id
Note: only projects in your current group are accessible
- Parameters:
conn (BlitzGateway) – active omero connection
projectId (int) – project id
- Returns:
ProjectWrapper – project object
- Return type:
omero.gateway.ProjectWrapper
- acia.segm.omero.utils.list_projects(conn)[source]#
- List projects in the current user group
Note: only projects in your current group are accessible
- Parameters:
conn (BlitzGateway) – Current omero BlitzGateway connection
- Returns:
List[ProjectWrapper] – List of project wrappers
- Return type:
list[omero.gateway.ProjectWrapper]
- acia.segm.omero.utils.list_images_in_dataset(conn, datasetId)[source]#
List all images in the omero dataset
- acia.segm.omero.utils.list_image_ids_in(omero_id, omero_type, conn)[source]#
List all image sequences in an omero source (dataset, project or image)
- Parameters:
- Raises:
Exception – when wrong omero_type is specified
- Returns:
List[int] – list of image ids contained in the OMERO resource
- Return type:
- acia.segm.omero.utils.image_iterator(conn, object)[source]#
- Parameters:
conn (omero.gateway.BlitzGateway)
- Return type:
omero.gateway.ImageWrapper
- acia.segm.omero.utils.create_project(conn, project_name)[source]#
- Parameters:
conn (omero.gateway.BlitzGateway)
project_name (str)
- Return type:
omero.gateway.ProjectWrapper