visualization¶

Visualisation and overlay functions used in tiatoolbox.

Functions

colourise_image

If input img is single channel, colourise it.

overlay_prediction_contours

Overlaying instance contours on image.

overlay_prediction_mask

Generate an overlay, given a 2D prediction map.

overlay_probability_map

Generate an overlay, given a 2D prediction map.

plot_graph

Drawing a graph onto a canvas.

random_colors

Generate a number of random colors.

Classes

AnnotationRenderer

Renders AnnotationStore to a tile.