HistomicsTK Logo
  • Installation
  • API Documentation
    • histomicstk
      • utils
      • preprocessing
      • filters
      • segmentation
      • features
      • annotations and masks
        • Annotation database backup and sqlite parser
        • Mosaic review gallery
        • Annotations to semantic segmentation masks
        • Annotations to object segmentation masks
        • Masks to annotations
        • Annotation and mask utilities
        • Polygon merger
      • saliency (tissue/cellularity detection)
      • workflows
  • Examples
  • Contributing
  • Credits
HistomicsTK
  • API Documentation
  • histomicstk
  • histomicstk.annotations_and_masks
  • Creating mosaic annotation review galleries
  • View page source

Creating mosaic annotation review galleries¶

histomicstk.annotations_and_masks.review_gallery.create_review_galleries(tilepath_base, upload_results=True, gc=None, gallery_savepath=None, gallery_folderid=None, padding=25, tiles_per_row=2, tiles_per_column=5, annprops=None, url=None, nameprefix='')[source]¶

Create and or post review galleries for rapid review.

Parameters:
  • tilepath_base (str) – directory where combined visualization.

  • upload_results (bool) – upload results to DSA?

  • gc (girder_client.Girder_Client) – authenticated girder client. Only needed upload_results.

  • gallery_savepath (str) – directory to save gallery. Only if upload_results.

  • gallery_folderid (str) – girder ID of folder to post galleries. Only if upload_result.

  • padding (int) – padding in pixels between tiles in same gallery.

  • tiles_per_row (int) – how many visualization tiles per row in gallery.

  • tiles_per_column (int) – how many visualization tiles per column in gallery.

  • annprops (dict) – properties of the annotations to be posted to DSA. Passed directly as annprops to get_annotation_documents_from_contours()

  • url (str) – url of the Digital Slide Archive Instance. For example: http://candygram.neurology.emory.edu:8080/

  • nameprefix (str) – prefix to prepend to gallery name

Returns:

each entry is a dict representing the response of the server post request to upload the gallery to DSA.

Return type:

list

histomicstk.annotations_and_masks.review_gallery.get_all_rois_from_folder_v2(gc, folderid, get_all_rois_kwargs, monitor='')[source]¶

Get all rois in a girder folder using get_all_rois_from_slide_v2().

Parameters:
  • gc (girder_client.Girder_Client) – authenticated girder client

  • folderid (str) – girder id of folder

  • get_all_rois_kwargs (dict) – kwargs to pass to get_all_rois_from_slide_v2()

  • monitor (str) – monitor prefix

Return type:

None

Previous Next

© Copyright Kitware, Inc..

Built with Sphinx using a theme provided by Read the Docs.