tumourkit.preprocessing.centroids2png.centroids2png

tumourkit.preprocessing.centroids2png.centroids2png(centroids: List[Tuple[int, int, int]]) ndarray

Generates a blank image with pixel value 255 at the coordinates of each centroid.

Parameters:

centroids (List[Tuple[int, int, int]]) – A list of centroids represented as (X, Y, class) tuples.

Returns:

A NumPy array representing the generated image.

Return type:

np.ndarray