navigate.model.analysis.boundary_detect.find_tissue_boundary_2d
- navigate.model.analysis.boundary_detect.find_tissue_boundary_2d(image_data: Union[_SupportsArray[dtype], _NestedSequence[_SupportsArray[dtype]], bool, int, float, complex, str, bytes, _NestedSequence[Union[bool, int, float, complex, str, bytes]]], mag_ratio: Optional[float] = 1.0) → list
Find all pixels containing tissue, based on an Otsu threshold. Optionally, return pixels in image space resampled by mag_ratio.
- Parameters:
image_data (npt.ArrayLike) – Image
mag_ratio (float) – Ratio between pixel sizes of current over target tiles.
- Returns:
boundary – List of boundaries of tissue by row of downsampled image.
- Return type:
list