tumourkit.utils.preprocessing.compute_perimeter
- tumourkit.utils.preprocessing.compute_perimeter(c: List[Tuple[float, float]]) float
Compute the perimeter of a given contour. Prerequisites: First and last point must be the same.
- Parameters:
c (List[Tuple[float, float]]) – Contour represented as a list of points (x,y). The first and last point must be the same.
- Returns:
The perimeter of the contour.
- Return type:
float