voyagerpy.spatial.get_tissue_contour_score#
- voyagerpy.spatial.get_tissue_contour_score(cntr: Any, adata: AnnData, size: str = 'hires') float#
Get the score of a contour. This function takes a contour and returns a score for how well it fits the tissue.
- Parameters:
cntr (Contour) – The contour to score, represented as a list of points from a cv2 findContours function.
adata (AnnData) – Annotated data matrix.
size ({"hires", "lowres"}, optional) – The resolution of the image to use, by default “hires”
- Returns:
Score of the contour of how well it fits the tissue.
- Return type: