navigate.model.analysis.boundary_detect.has_tissue
- navigate.model.analysis.boundary_detect.has_tissue(image_data: Union[_Buffer, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], complex, bytes, str, _NestedSequence[complex | bytes | str]], x: int, y: int, width: int, offset: Optional[Union[_Buffer, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], complex, bytes, str, _NestedSequence[complex | bytes | str]]] = None, variance: Optional[Union[_Buffer, _SupportsArray[dtype[Any]], _NestedSequence[_SupportsArray[dtype[Any]]], complex, bytes, str, _NestedSequence[complex | bytes | str]]] = None) → bool
Determine if an image contains tissue.
- Parameters:
image_data (npt.ArrayLike) – Image
x (int) – Starting x-position of subimage. Must be smaller than image_data.shape[0].
y (int) – Starting y-position of subimage. Must be smaller than image_data.shape[1].
width (int) – Width of subimage. Must be smaller than min(image_data.shape[:1])
offset (npt.ArrayLike) – Camera pixel offset map. Same size as image_data.
variance (npt.ArrayLike) – Camera pixel variance map. Same size as image_data.
- Returns:
Is tissue present?
- Return type:
bool