voyagerpy.spatial.detect_tissue_threshold#
- voyagerpy.spatial.detect_tissue_threshold(adata: AnnData, size: str = 'hires', low: int = 200, high: int = 255) Tuple[int, Any | None]#
Detect the tissue boundary using a thresholding method. The contours are evaluated from the image in
adata.uns["spatial"]["img"][size]- Parameters:
- Returns:
The threshold value and the contour of the tissue boundary.
- Return type:
Tuple[int, Optional[Contour]]