voyagerpy.spatial.get_approx_tissue_boundary#

voyagerpy.spatial.get_approx_tissue_boundary(adata: AnnData, size: str = 'hires', paddingx: int = 0, paddingy: int = 0) Tuple[int, int, int, int]#

Compute approx tissue. Get the approximate tissue boundary from an image in the AnnData object.

Parameters:
  • adata (AnnData) – Annotated data matrix.

  • size (str, optional) – The image resolution to use, by default “hires”

  • paddingx (int, optional) – Horizontal padding for cropping the image, by default 0.

  • paddingy (int, optional) – The vertical padding from cropping the image, by default 0

Returns:

The top, bottom, left, and right coordinates of the tissue boundary, in pixels.

Return type:

Tuple[int, int, int, int]