voyagerpy.spatial.get_tissue_boundary#

voyagerpy.spatial.get_tissue_boundary(adata: AnnData, threshold_low: int | None = None, size: str | None = 'hires', strictness: int | None = None, inplace: bool = False) Polygon#

Detect the tissue boundary. This function computes the tissue boundary from the image in adata.uns["spatial"]["img"][size]

Parameters:
  • adata (AnnData) – Annotated data matrix

  • threshold_low (Optional[int], optional) – The minimum threshold by default None

  • size ({"hires", "lowres"}, optional) – The resolution of the image to use, by default “hires”

  • strictness (Optional[int], optional) – Not used.

  • inplace (bool, optional) – Not used.

Returns:

Polygon of the tissue boundary.

Return type:

Polygon